...overview of the extension...
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.