...overview of the extension...
- Any version of Yii will work.
- Must have optiPNG, Advpng and pngdef installed.
Copy the class LossylessHelper.php to helper folder. in your application just call the class like follows: To compress the image by lossless: LossylessHelper::lossylessImg('\img\example.png');
To compress the images in the folder: LossylessHelper::lossylessFolder('\img');
Let us know if you found any bugs or have any suggestion in our github repo. thanks: Ananda Raj Pandey.