skip to navigation
skip to content

Not Logged In

imagy 0.2.5

A daemon to automatically handle image optimization

Latest Version: 0.4.0

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

Imagy is a file daemon, that watches your website's media root (where your images are stored) and automatically optimizes image files that are created or modified within it. Imagy uses *lossless compression*, so your users never have to load unnecessary bytes while the algorithms used are completely lossless. Your images look the same, but load faster.

A lot of work has gone into making it `set-and-forget`. Instead of having to code up deamons, file watches and handle different file formats on your own, Imagy does all the work for you. All you need to do is
::

    imagy /awesome/images/


The algorithms used are stable (don't further modify files after multiple invocations), however to make trying it out as easy as possible Imagy, by default, keeps the original file around for later reversal.

If you wish to stop using Imagy, run ``imagy -r`` which will copy all original images back to their initial location

If you have (rightfully) come to the conclusion that you don't really need to keep originals around, set ``KEEP_ORIGINALS`` in ``config.py`` to  ``False``. If you want to delete all already stored originals run ``imagy --deloriginals``.


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

Tested on Ubuntu 10.04 & 11.10:

::

    sudo apt-get install pngnq pngcrush imagemagick gifsicle libjpeg-progs

    pip install imagy


That's it. You should now be able to run ``imagy``.


.. _Information on how to install ``pip``: http://www.pip-installer.org/en/latest/installing.html#prerequisites


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

As soon as the file

::

    images/img.jpg

gets created, Imagy optimizes it while keeping the original at

::

    images/img-original.jpg


Homage
-----------------

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



Dependencies
-----------------

imagemagick
gifsicle
jpegtran (on ubuntu in libjpeg-progs)
pngcrush
pngnq
 
File Type Py Version Uploaded on Size
imagy-0.2.5.tar.gz (md5) Source 2012-06-23 15KB
  • Downloads (All Versions):
  • 28 downloads in the last day
  • 147 downloads in the last week
  • 988 downloads in the last month
  • Author: Dominik Dabrowski
  • Home Page: https://github.com/doda/imagy
  • License:
    Copyright (c) 2012, Dominik Dabrowski
    
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
    
    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  • Package Index Owner: doda
  • DOAP record: imagy-0.2.5.xml