How does Google's Page Speed lossless image compression work?

后端 未结 9 636
Happy的楠姐
Happy的楠姐 2020-11-30 16:54

When you run Google\'s PageSpeed plugin for Firebug/Firefox on a website it will suggest cases where an image can be losslessly compressed, and provide a link to download th

9条回答
  •  佛祖请我去吃肉
    2020-11-30 17:12

    In my opinion the best option out there that effectively handles most image formats in a go is trimage. It effectively utilizes optipng, pngcrush, advpng and jpegoptim based on the image format and delivers near perfect lossless compression.

    The implementation is pretty easy if using a command line.

    sudo apt-get install trimage    
    trimage -d images/*
    

    and voila! :-)
    Additionally you will find a pretty simple interface to do it manually as well.

提交回复
热议问题