6
How to do even more optimized compression than you can achieve with tools like ImageMagick
and libgd
(GD) without generating WEBP image?
Some services such as https://tinypng.com/ and http://www.jpegmini.com/ promise to optimize image without loss of quality. I also know that there are other tools that make more complex optimizations that take into account limitations in human vision.
I am using PHP 5.5 and have root access, but any tool that is compatible with *Nix and can be executed by command line, without requiring access to external web service, is welcome.
If you pay attention to the tinypng page, they talk about "lossy Compression" - they lose quality yes, although the service is designed to cause a loss imperceptible quality. What tinypng does are exactly these most complex optimizations that you’re thinking of.
– user25930
There is also the
pngcrush
png. What image formats? PNG and JPEG?– njsg
Take a look at this link https://pngquant.org/ Tinypng uses this library if using it directly on the server will not use the external server.
– MoisesGama
The two of you who commented: if you can give an answer more canonical, and relatively documented, even if the suggested app suggestion has been given by others, I approve the best answer, not the first answer.
– Emerson Rocha