Skip to main content

automatically optimize images

Project description

Imagy - make your website's images load upto 50% faster
===============

Imagy uses *lossless compression* on images, so your users never have to load unnecessary bytes. The algorithms used are lossless, so your images look the same, but load faster.

Instead of having to code up deamons, file watches and handle different file formats on your own, Imagy does all the work for you. Just point it at the folder(s) your images are stored in and it will automatically look for files that are created or changed and optimize them for size *without any visual impact*.

Getting Started
-----------------

::

pip install imagy

imagy /awesome/images/in/here/


That's it. Imagy's now running.


You can instead also specifiy the image paths directly in `config.py` which already holds a couple of examples


Example
-----------------

As soon as the file

::

images/img.jpg

gets created, Imagy optimizes while the original stays at

::

images/img-original.jpg


The algorithms used are stable (don't further modify files after multiple invocations), however by default Imagy keeps the original file. If you would not like to keep original images around set KEEP_ORIGINALS to False.

In the background Imagy uses the awesome library smush which exposes a general interface to handle the various file types.

If you wish to stop using Imagy, run

::

imagy -r

which will copy all original images back to their initial location

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

imagy-0.0.1.tar.gz (13.9 kB view hashes)

Uploaded Source

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