Skip to main content

Simple CLI to optimize images for the web.

Project description

Cruncher

Cruncher is a simple but powerful command line tool that optimizes images for the web.

Version

Installing

Install and update Cruncher using pip.

$ pip install cruncher

It is highly recommenced that you run Cruncher with virualenv. This can abstract away the peculiarities of running Cruncher across multiple operating systems.

Cruncher is built for Python 3. It is tested the last three minor versions of Python (currently 3.6 to 3.8).

Basic Usage

Cruncher is run from the terminal. Simply specify the image or directory of images you wish to compress, and your preferred settings.

Example:

$ cruncher -i "C:\path_to_image\the_image.jpg" -q 75 -s 300 500 -o "C:\path_to_output_dir"

In this example the following options are used.

-i Is the path to the image you wish to compress.

-q Is the output image quality.

-s Is the output images dimensions (width, height).

-o Is the output directory.

Please read the documentation for more details about these options and the others that exist.

Documentation

Cruncher Documentation

  1. Installation
  2. CLI Options
  3. JSON Configuration
  4. ICC Profile Conversion
  5. Troubleshooting

Contributors

@danielmorell

Copyright © 2020 Daniel Morell

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cruncher, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size cruncher-0.4.0.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View
Filename, size cruncher-0.4.0-py3-none-any.whl (23.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page