PHP Classes

PHP PNG Lossless Compression: Optimize PNG image compressing with external tools

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 838 This week: 5All time: 4,133 This week: 71Up
Version License PHP version Categories
lossless-png 1.0.9GNU Free Document...5.0PHP 5, Graphics, Compression, Perform...
Description 

Author

This class can optimize PNG image compressing with external tools.

It can take the name of a PNG image file and pass it to external tools like optiPNG, advPNG or advdef to compress them using a algorithm that preserves the original image quality.

The class can also process multiple PNG images from a given directory at once.

Innovation Award
PHP Programming Innovation award nominee
July 2013
Number 8
Image formats like PNG allow compressing the data that they contain to represent a given image.

It is possible to achieve different levels of efficiency by varying several compression parameters.

This class can optimize the compression efficiency of PNG images by using different PNG image optimization programs and keeping the output of the program that gave the best results.

Manuel Lemos
Picture of nepala
Name: nepala <contact>
Classes: 1 package by
Country: Nepal Nepal
Innovation award
Innovation award
Nominee: 1x

Details

Yii PHP loss less (lossyless) compression class ======================== PHP lossless (lossyless) compression helper class using optiPNG advPNG and advdef. All these component must be installed in the server to use this class. Installation of these components can be achieve by just installing advanceMAME: http://sourceforge.net/projects/advancemame/ This class can be used independently or with Yii framework. Examples: To compress the image by lossyless: LossylessHelper::lossylessImg('\img\example.png'); To compress the images in the folder: LossylessHelper::lossylessFolder('\img'); To use this class with other frameworks or independently: just comment the lines: if ($log) Yii::log($log); As: // if ($log) // Yii::log($log); Any contribution to the class is highly appreciated. @author Ananda Raj Pandey

  Files folder image Files  
File Role Description
Plain text file LossylessHelper.php Class PNG compression
Accessible without login Plain text file README.md Doc. doc

 Version Control Unique User Downloads Download Rankings  
 100%
Total:838
This week:5
All time:4,133
This week:71Up