AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.09.01 05:23 "[Tiff] DPI setting", by Poom
2004.09.01 08:50 "RE: [Tiff] DPI setting", by Patrick Harris
2004.09.01 08:59 "Re: [Tiff] DPI setting", by Poom
2004.09.01 17:08 "Re: [Tiff] DPI setting", by Andrey Kiselev
2004.09.01 13:55 "Re: [Tiff] DPI setting", by Frank Warmerdam

2004.09.01 13:55 "Re: [Tiff] DPI setting", by Frank Warmerdam

Now I can generate TIFF file .However,when I check my tiff file with photoshop,my picture's DPI value is strange!

On setting tag ,I setted like this.

   TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, imageW);
   TIFFSetField(tif, TIFFTAG_IMAGELENGTH, imageH);
   TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8,8,8);

Poom,

On an unrelated point, I believe you are only supposed to pass a single value when setting TIFFTAG_BITSPERSAMPLE.

eg.

      TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8 );

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent