Skip to content

Commit

Permalink
Add info to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsNoahEvans committed Nov 6, 2023
1 parent 4ac8398 commit 4779f12
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@
go.work

# macOS
.DS_Store
.DS_Store

# binary
resizer
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# Resizer
Easily resize images

## Usage:
`Usage: ./resizer <image_path> <size> ...`

Sizes can be a single number, to resize into a square:
`./resizer <image_path> 1024 ...`

Or they can be exact, using 'x' as a splitter:
`./resizer <image_path> 500x300 ...`

Individual sizes are separated by a space.

Add as many sizes as you want, mixing between both square & exact measurements.

Supports JPEG, PNG, and GIF.

Results will be stored in the same directory as the input file, with the size at the end:

`./resizer /path/to/my/image.png 1024`

will result in a file named

`/path/to/my/image_1024x1024.png`
Binary file removed resizer
Binary file not shown.

0 comments on commit 4779f12

Please sign in to comment.