-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ac8398
commit 4779f12
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,7 @@ | |
go.work | ||
|
||
# macOS | ||
.DS_Store | ||
.DS_Store | ||
|
||
# binary | ||
resizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |