I am trying to change the resolution unit in the metadata file of a Tiff image.
For my first set of Tiff, the following command seemed to work :
Code: Select all
convert input.tif -units PixelsPerCentimeter ouput.tif
Code: Select all
chrcoello@cr01:/data/warp/2D/highres_dev$ identify -verbose MR25_s018_WP_meta.tif | grep -E '(Resolution|Units|Print size|Geometry)'
Geometry: 22500x17500+0+0
Resolution: 5000x5000
Print size: 4.5x3.5
Units: PixelsPerInch
tiff:ResolutionUnit: 2
tiff:XResolution: 720000/10000
tiff:YResolution: 720000/10000
chrcoello@cr01:/data/warp/2D/highres_dev$ convert MR25_s018_WP_meta.tif -units PixelsPerCentimeter test.tif
chrcoello@cr01:/data/warp/2D/highres_dev$ identify -verbose test.tif | grep -E '(Resolution|Units|Print size|Geometry)'
Geometry: 22500x17500+0+0
Resolution: 1968.5x1968.5
Print size: 11.43x8.89
Units: PixelsPerInch
tiff:ResolutionUnit: 2
tiff:XResolution: 720000/10000
tiff:YResolution: 720000/10000
Any advice to overcome this issue ?
Thanks in advance
Christopher