CLI to create lossless icons in multiple sizes
- resize icon file(png/jpg) to multiple sizes
- lossless compression for png files
- maintain aspect ratio and transparency
- macOS or Linux (Windows not tested)
- python3.10+
- Image Magick
brew install imagemagick
pip install icon-resize
# default resize to 256, 128, 64
icon-resize mic-512
# specify resize to 128, 64
icon-resize mic-512 --sizes "128,64"
# save to 'mic' folder with default sizes
icon-resize mic-512 --out-folder mic/
# enable autocomplete in current session
eval "$(_ICON_RESIZE_COMPLETE=zsh_source icon_resize)"
- use Typer for CLI and help docs generation
- use Image Magick for both resize and compress images
Open a github issue or ping me on Twitter