As Google PageSpeed docs suggests to increase the Google PageSpeed, this Neos CMS plugin changes the sampling factor of images to 4:2:0 while resizing.
Works very well in addition to moc/imageoptimizer.
Supported Imagine drivers:
- Imagick (ImageMagick)
Install with composer
composer require vivomedia/neos-jpeg-pagespeed-optimization
If you want to change all already created images, you have to clear all thumbnails and the cache.
./flow media:clearthumbnails
./flow flow:cache:flush --force
If you want to disable the image optimization in development context, you can set up following configuration in your /Configuration/Development/Settings.yaml
VIVOMEDIA:
GooglePageSpeed:
JpegOptimization:
enabled: false
Imgine drivers:
- Gmagick (GraphicsMagick)