Images take up to 50% of the total size of an average web page. If images are not optimized, users end up downloading extra bytes. The idea is to optimize images before we serve them so that users get the most visually awesome experience without all the byte bloat. In this tutorial, we will write bash scripts that create and optimize images in different image formats.
Table of contents
Set upOrganize imagesConvert to PNGConvert to JPGConvert to WebPCombining everything into a single directoryOptimize SVGOptimize PNGOptimize JPG4 Comments
Sort: