AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.05.15 18:00 "tiffset usage, ResolutionUnits", by Richard Morris
2004.05.15 18:52 "Re: tiffset usage, ResolutionUnits", by Frank Warmerdam
2004.05.16 07:18 "Re: tiffset usage, ResolutionUnits", by Andrey Kiselev

2004.05.15 18:00 "tiffset usage, ResolutionUnits", by Richard Morris

Hello all,

Can anyone point me to any documentation on usage of the "tiffset" 
utility? I am trying to convert ResolutionUnits on Tiff files from cm to 
inches, and am not successful so far. I see from the libtiff manual that 
the tag value for ResolutionUnits is 296, but I don't know how to set 
the value. From tiffdump output, I saw that tiff files with resolution 
in cm output "ResolutionUnit (296) SHORT (3) 1<3>", while tiffs with 
resolution in inches output "ResolutionUnit (296) SHORT (3) 1<2>".

So, it seemed to me that "tiffset -s 296 2 test.tif" should change the 
"ResolutionUnit flag to the value required for inches, but I keep 
receiving the error _TIFFVSetField: test.tif: Bad value -1077938501 for 
"ResolutionUnit". What are the possible values for ResolutionUnit, and 
how do I set them? (I am using Tiff library 3.6.1, on FreeBSD)

Or, if there are any other (shell scriptable) utilities that would do 
this job, I would appreciate the info.

Thanks, and best regards,

-- 
Rick Morris
Application Developer
MOS Imaging Systems
rmorris@mos.us
305-779-1247 Direct Line