Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 762 Bytes

imagemagick-compression.md

File metadata and controls

24 lines (18 loc) · 762 Bytes

title: compress images updated: 2015-10-10 11:10:19 description: Sometimes images are just too big! os: [macosx, linux] tags: [imagemagick] deps: [] contributors: ["http://www.github.com/anschwa"]

Use ImageMagick to healthily compress JPEG images.

Compressing JPEG

  • quality in 85
  • progressive (comprobed compression)
  • a very tiny gausssian blur to optimize the size (0.05 or 0.5 of radius) depends on the quality and size of the picture, this notably optimizes the size of the jpeg.
  • Strip any comment or exif tag
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% source.jpg result.jpg

Reference