Compression in ImageMagick

exif image-compression image-magick tiff

Following up on a previous post about converting images to a TIFF with a specific dots-per-inch, or DPI, for large images it may be necessary to compress the image during the conversion as well.

Without compression:

convert -density 600 image1.png image1.tiff

With LZW compression:

convert image1.png -density 600 -compress lzw image1-compressed.tiff

LZW is a lossless compression algorithm; more information: Wikipedia.

ImageMagick docs on -compress.

© Amy Tabb 2018 - 2023. All rights reserved. The contents of this site reflect my personal perspectives and not those of any other entity.