Closed gtbu closed 4 years ago
IMO, this is certainly not for CMS, but for a plugin like that https://www.typesettercms.com/Plugins/321_TinyPNG
There is a php-lib pngquant which reduces secure png's drastic.
That's only a wrapper for pngquant, which must be installed on the server. We can't install software on the server, normally. If we wanted to do advanced image manipulation server-side, there is a certain chance having imagemagick, which can do PNG quantization and much more.
Typesetter uses ccsmin as compressor for css and also a js-compressor. Png-images can be huge. There is a php-lib pngquant which reduces secure png's drastic.
There is also php-fork at https://github.com/ourcodeworld/php-pngquant. It also been added to symphony , and there is a code at php.net