CLI to create lossless icons in multiple sizes
Project description
Icon Resize CLI
CLI to create lossless icons in multiple sizes
Features
- resize icon file(png/jpg) to multiple sizes
- lossless compression for png files
- maintain aspect ratio and transparency
Prerequisite
- macOS or Linux (Windows not tested)
- python3.10+
- Image Magick
brew install imagemagick
Installation
pip install icon-resize
Usage
# 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)"
Technical Details
- use Typer for CLI and help docs generation
- use Image Magick for both resize and compress images
Questions?
Open a github issue or ping me on Twitter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
icon_resize-0.2.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for icon_resize-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 146d1af1ce30a402359f43b8af56b4400a65ae5123f2e709bbde52805c94a973 |
|
MD5 | b8306945c8a936f8ae3ef7a295cda964 |
|
BLAKE2b-256 | 8e1961cb943f283f9d3e6564f787d5d7b33402eaf8a17c48dce31737dc91d457 |