CLI to create lossless icons in multiple sizes
Project description
Icon Resize
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
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.3.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file icon_resize-0.2.3.tar.gz
.
File metadata
- Download URL: icon_resize-0.2.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c64965e5fcf2f2b5fa3b8a1792cf510e32bd7e49a877131814c1248f0ee93b7 |
|
MD5 | e411a4b74a4d8b68979edf0602fce013 |
|
BLAKE2b-256 | 954fdc4eb4bb149f2a6d8cd32701298abe2803035e6010b2cfb7fdd4caa033f0 |
File details
Details for the file icon_resize-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: icon_resize-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a868827320a84e0cd879cc1c10ea070b36ef8e9b15da7118a2da1106dc13f005 |
|
MD5 | 595a78ece2fe1446af580ab731af57d1 |
|
BLAKE2b-256 | 6c03ad962cb8c0ec06e3cf8ec908c106cae7446acdb78eea69b8aad54af1fa14 |