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 details)

Uploaded Source

File details

Details for the file imagy-0.0.1.tar.gz.

File metadata

  • Download URL: imagy-0.0.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for imagy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1e61c4a9eb8d73f76d098cc7c8106aaacb7723a3ba09089d5d6d4fdaadc80b88
MD5 4ab9fd27f2031e17902c689fea510937
BLAKE2b-256 b0dfeea8ef812b6c6ac5e1ee9c918dfc7c8709330066471eea4106a38ec3b453

See more details on using hashes here.

Provenance

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