MageHost - Optimize images for Google

Gewijzigd op Di, 20 Dec, 2022 om 2:30 PM

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
CAPTCHA-verificatie is vereist.

Feedback verzonden

We stellen uw moeite op prijs en zullen proberen het artikel te verbeteren