PHP Classes

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

Recommend this page to a friend!

  Author Author  
Picture of nepala
Name: nepala <contact>
Classes: 1 package by
Country: Nepal Nepal
Age: ???
All time rank: 25824 in Nepal Nepal
Week rank: 155 Up1 in Nepal Nepal Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

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

  Classes of nepala  >  PHP PNG Lossless Compression  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP PNG Lossless Compression
Base name: lossless-png
Description: Optimize PNG image compressing with external tools
Version: 1.0.6
PHP version: 5.0
License: GNU Free Documentation License (FDL)
All time users: 836 users
All time rank: 4137
Week users: 3 users
Week rank: 191 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
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
Group folder image Performance and optimization Tools to measure and optimize the performance of systems View top rated classes


  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

  User ratings  
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 LossylessHelper.php Class PNG compression
Accessible without login Plain text file README.md Doc. doc

Install with Composer Install with Composer - Download Download all files: lossless-png.tar.gz lossless-png.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  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

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