Download .zip |
Info | Screenshots | View files (8) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2007-09-13 (9 years ago) | Not enough user ratings | Total: 1,224 | All time: 3,031 This week: 738 |
Version | License | PHP version | Categories | |||
jpegfit 1.0.0 | Freeware | 5.0.0 | PHP 5, Graphics |
Description | Author | ||||||||||||||
This class can be used to optimize images to fit within a given file size limit. |
|
JpegFit A PHP class that tries to encode an input image to the jpeg file format with a given file size. It is similar to the JPEG Reducer Class (http://www.phpclasses.org/jpegreducer) but more advanced. This class uses a binary search algorithm to rapidly locate the jpeg quality setting which is close to the target file size. Also, the input image can be of JPEG, PNG, GIF, WBMP, and GD2 formats. If target file size is lower than the minimum possible then lowest quality is used. If target file size is greater than the maximum possible then the highest quality is used. If target file size is inbetween then the closest file size will be found, making sure it does not exceed target file size. 2007-04-12 Added Image Resource getters and setters with examples 2007-03-29 First version Zafar Iqbal <ultrasine@gmail.com> |
Screenshots | ||
Files |
File | Role | Description |
---|---|---|
61081.jpg | Output | First ever jpeg image to show file size in image? |
class-jpegfit.php | Class | JpegFit Class |
example1.php | Example | Example 1 |
example2.php | Example | Example 2 |
example3.php | Example | Example 3 |
example4.php | Example | Example 4 |
example5.php | Example | Example to demo resize |
README | Data | README |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
JPEG Reducer Similar PHP Class |