Nieuw ticket Mijn tickets Inloggen Liquid error: undefined local variable or method `_routes' for #<Liquid::Strainer:0x000055c77777e6d0>

Optimize images for Google

Gewijzigd op Fri, 28 Oct 2022 om 09:59 AM

Disclaimer: MageHost has joined forces with Savvii. Therefore, these articles are only relevant to existing MageHost customers. For more information on this, visit www.savvii.com/en/magehost.  


Google PageSpeed requires images to be compressed a little lossy. This means the visual quality will be a little less, hardly noticeable by visitors. The sizes of the images in Kilobytes will be a lot less. This will which will cause your site to load faster, especially on mobile connections. We have a script available which you can run as a Cron Job:

~/bin/image_optimize_lossy.sh

Example cron job:

25 2 * * * flock -n $LOCKDIR/imgopt $HOME/bin/image_optimize_lossy.sh &>>$IMGLOG

The script will make backups of images in ~/backup before changing it. If you only want to compress lossless, so the image will not change visually only reduce its byte size (but less), you can use the script:

~/bin/image_optimize_lossless.sh


Was dit artikel nuttig?

Dat is fantastisch!

Hartelijk dank voor uw beoordeling

Sorry dat we u niet konden helpen

Hartelijk dank voor uw beoordeling

Laat ons weten hoe we dit artikel kunnen verbeteren!

Selecteer tenminste een van de redenen

Feedback verzonden

We waarderen uw moeite en we gaan proberen om het artikel te verbeteren