iresize 0.2.0
iresize
i-resize: conyo tagalog for the word resize. Actual tagalog word is "baguhin ang laki", but that word is too long for a cli command.
Use CLI to resize images. This is just a personal tool that I use for my blogs (converting super large images to smaller sizes that I can safely upload onto my blog). My blog is a static site, generated using Hugo, and I created this tool before I thought of hosting my images in a cheap bucket on GCP.
Requirements
Since I use magickwand-crystal, this tool inherits all the requirements of that shard.
- libMagickWand must be installed
- pkg-config must be available
Installation
I use Linux at home, so that's the only platform that I would generate binaries for.
- Install the requirements first
- Download the binary from the releases page
- Add the binary to your path :)
Usage
iresize -I ./ -O ./output -H 720
iresize --input ./ --output ./output --height 720 --width 720
iresize --input ./ --output ./output --height 720 --watch
Options
Flag | Short | Description | Default Value |
---|---|---|---|
--input |
-I |
Path to the folder filled with images, or Path to the target image (JPEG and PNG files are only supported as of now) | ./ |
--output |
-O |
Path to the output folder | ./output |
--height |
-H |
Define the height we should resize the image(s) to. | 720 |
--width |
-W |
Define the width we should resize the image(s) to. | Keep aspect ratio |
--watch |
Watch directory and auto convert files if new files are added | false |
Contributing
- Fork it (https://github.com/dcefram/img-resize/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- dcefram Daniel Cefram Ramirez - creator, maintainer
Repository
iresize
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- over 2 years ago
- September 16, 2018
License
MIT License
Links
Synced at
Mon, 25 Nov 2024 06:02:28 GMT
Languages