Skip to main content

CLI to create lossless icons in multiple sizes

Project description

Icon Resize CLI

pypi-badge py-badge black-badge mit

screenshot

CLI to create lossless icons in multiple sizes

🔗 source code

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 twitter-icon

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.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

icon_resize-0.2.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page