| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2004.05.15 18:00 "tiffset usage, ResolutionUnits", by Richard MorrisHello 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 |
|||||||