Page 1 of 1

Change the resolution of tiff files

Posted: 2012-01-05T10:13:52-07:00
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

Re: Change the resolution of tiff files

Posted: 2012-01-05T11:24:40-07:00
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