Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Optimise web images for performance

As webpages get too heavy the script included here tries to optimise JPG images using the convert binary.

This is inspired by https://developers.google.com/speed/docs/insights/OptimizeImages and depends on arg-parser.sh included in this repo.

Run command

bin/web-image-optimiser.sh

It will find all jpg files and convert/optimise them to a compression and format that looks lossless to the common human eye.

Notes

Go Back