0.01
No commit activity in last 3 years
No release in over 3 years
Optimizes given JPEG and PNG images or images in given folder. Uses several encoders for achieving the best possible lossless compression ratio and tries to employ the most advanced methods such as JPEG algorithmic encoding if available or PNG transparent pixels stripping and automatic color reduction.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
>= 0.2.0
 Project Readme

Image Optimizer

Image Optimizer optimizes given JPEG and PNG images or images in given folder. Uses several encoders for achieving the best possible lossless compression ratio and tries to employ the most advanced methods such as JPEG algorithmic encoding if available or PNG transparent pixels stripping and automatic color reduction. Performs the following for PNG:

  1. converts the PNG file using gimp to the XCF format,
  2. converts XCF back to the PNG without transparent pixels using xcf2png,
  3. optimizes it using pngcrush or optipng.

Or:

  1. rewrites the PNG file using convert,
  2. optimizes it using pngcrush or optipng.

And for JPEG:

  1. strips all unnecessary metadata using jpegoptim,
  2. optimizes using jpegtran.

Usage

For command line usage see help for the image-optimizer command. For usage as library see source of the image-optimizer command.

Requirements

Following software for full functionality is necessary:

Steps which requires non-strictly required components will be silently ignored if these components will not be available.

Copyright

Copyright © 2011 – 2015 Martin Poljak. See LICENSE.txt for further details.