PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 842 All time: 4,127 This week: 524Up
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
Age: ???
All time rank: 25814 in Nepal Nepal
Week rank: 195 Up1 in Nepal Nepal Up
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 (2)  
File Role Description
Plain text file LossylessHelper.php Class PNG compression
Accessible without login Plain text file README.md Doc. doc

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:842
This week:0
All time:4,127
This week:524Up