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
Change the resolution of tiff files
-
- Posts: 1
- Joined: 2012-01-05T10:10:05-07:00
- Authentication code: 8675308
- 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
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
convert xxx.tif -density 400x400 -units pixelsperinch out.tif