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
2023-06-02 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 838 All time: 4,130 This week: 113Up
Version License PHP version Categories
lossless-png 1.0.7GNU Free Document...5.0PHP 5, Graphics, Compression, Perform...


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: 25784 in Nepal Nepal
Week rank: 388 Up1 in Nepal Nepal Up
Innovation award
Innovation award
Nominee: 1x

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: 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 Doc. doc

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,130
This week:113Up