Skip to content

Instantly share code, notes, and snippets.

@ciases
Last active September 2, 2016 08:56
Show Gist options
  • Save ciases/9eb6484e1b54e3c1a417e57600db0fe9 to your computer and use it in GitHub Desktop.
Save ciases/9eb6484e1b54e3c1a417e57600db0fe9 to your computer and use it in GitHub Desktop.
Use ImageMagick to create optimised and progressive JPGs

Use ImageMagick to create optimised and progressive JPGs

Use the following command to optimise a JPG and make it progressive:

$ convert -strip -interlace Plane -quality 80 input-file.jpg output-file.jpg

Batch all the images in a folder like this:

$ for i in source/images/backgrounds/*.jpg; do convert -strip -interlace Plane -quality 80 $i $i; done

coderwall article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment