PHP library to images optimize
PHP library to optimize images
I need a PHP library to optimize images in my project "Image optimizer API".
If you search any library to yours project, the best place to find it is https://packagist.org site. On this site can you find any package and easily use with composer.
What should have a good package?
– documentation,
– tests,
– compatibility,
– package age.
In my case I searched "image optimizer". Result list:

On list can you see, how often was package downloaded and how many recommendation (stars) have. I chose "ps/image-optimizer" (author Piotr Sliwa) with MIT license.
ps/image-optimizer
With this package can you optimize png, jpg and gif images. First must you install required software – optipng, pngquant, jpegoptim. If you want you can install alternative programs.
More details can you find on project page:
https://packagist.org/packages/ps/image-optimizer
No Comment