Login   Register  
PHP Classes

JPEG Reducer: Reduce a JPEG file size adjusting its quality

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Huda M Elmatsani
Name: Huda M Elmatsani <contact>
Classes: 14 packages by
Country: Indonesia Indonesia
Age: ???
All time rank: 151 in Indonesia Indonesia
Week rank: 49 Down1 in Indonesia Indonesia Equal
Innovation award
Innovation award
Nominee: 5x

Winner: 3x

  Detailed description   Download Download .zip .tar.gz  
To reduce the size of JPEG image file, usually the image is saved with lower quality compression factor.

However, using this method it is not guaranteed that the size of the resulting image file will be smaller than a given size limit.

JPEG Reducer is a class that solves this problem by trying different quality to determine the ideal compression ratio to reduce image to the target limit size just by specifying that limit value in class variable.

This class can be used in public photo gallery to make sure all images are have acceptable size.

  Classes of Huda M Elmatsani  >  JPEG Reducer  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: JPEG Reducer
Base name: jpegreducer
Description: Reduce a JPEG file size adjusting its quality
Version: -
PHP version: 3
License: Freeware
All time users: 2710 users
All time rank: 1276
Week users: 1 user
Week rank: 1459 Down
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Compression Data compression and file archive manipulation View top rated classes

  Innovation Award  
PHP Programming Innovation award winner
November 2004

Prize: One downloadable copy of Roadsend PHP Compiler
Sometimes it is necessary to limit the size occupied by the files of image archives to prevent that they take too much disk space.

The size of JPEG image files can be reduced by using a lower quality factor when saving to a file but it is not easy to determine what is the smallest quality factor reduction that guarantees that an image file will not exceed a given limit.

This class provides an approximate solution based on a few tests using different quality factors and then using interpolation to reach a reduction factor close to the ideal value that can be used to keep the file size near the limit.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (75%) Good (86%) - Sufficient (79%) - - Not sure (54%) 1326
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file class.jpegreducer.php Class class reduce jpeg filesize
Plain text file class.jpegxreducer.php Class variant
Accessible without login Plain text file test.jpegreducer.php Example example
Accessible without login Plain text file test.jpegxreducer.php Example example: one line call

Download Download all files: jpegreducer.tar.gz jpegreducer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.