Change the resolution of tiff files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
QWzvhLXWQ5
Posts: 1
Joined: 2012-01-05T10:10:05-07:00
Authentication code: 8675308

Change the resolution of tiff files

Post by QWzvhLXWQ5 »

tiffinfo gives me the following output. I want to change the
Resolution from 299,300 pixels/inch to 400,400 pixels/inch (notice
that I want Image Width and Length remain the same, so -resample
option is not what I want). Does anybody show me how to do so with
convert? Thanks!

xxx.tiff:
TIFF Directory at offset 0x198ac (104620)
Image Width: 2392 Image Length: 3257
Resolution: 299, 300 pixels/inch
Bits/Sample: 1
Compression Scheme: LZW
Photometric Interpretation: min-is-black
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 27
Planar Configuration: single image plane
Page Number: 0-1
DocumentName: xxx.tiff
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Change the resolution of tiff files

Post by fmw42 »

use -density and -units. see http://www.imagemagick.org/script/comma ... hp#density and http://www.imagemagick.org/script/comma ... .php#units

convert xxx.tif -density 400x400 -units pixelsperinch out.tif
Post Reply