AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.08.05 03:50 "[Tiff] TIFF file from RAW format", by anil kumar
2005.08.04 05:34 "[Tiff] TIFF file from RAW file", by anil kumar
2005.08.05 09:44 "Re: [Tiff] TIFF file from RAW format", by Joris
2005.08.08 11:39 "Re: [Tiff] TIFF file from RAW format", by anil kumar
2005.08.08 11:52 "Re: [Tiff] TIFF file from RAW format", by Joris

2005.08.08 11:52 "Re: [Tiff] TIFF file from RAW format", by Joris

Anil,

Please observe proper quoting style. In particular, please

A good guide on quoting style is here:

http://web.presby.edu/~nnqadmin/nnq/nquote.html

////////////////////////////////////////
/////////Write RAW to TIFF
///////////////////////////////////////

TIFFSetField(image, TIFFTAG_IMAGEWIDTH, Width);

TIFFSetField(image, TIFFTAG_IMAGELENGTH, Height);

.................

nBytesWritten = TIFFWriteRawStrip(image, 0, pszBMPImage, g_nBufferSize);

You trimmed your code too much to say anything for sure, or anything at all about the significant parts you left out. However, the use of TIFFWriteRawStrip seems very suspicious. Are you sure that's what you want?

If you've set compression to none (or any compression of your choice), and have set the RowsPerStrip tag and such to suitable values, you may next want to write your strips with calls to TIFFWriteEncodedStrip instead (that's right, even if you set compression to none).

Man page on TIFFWriteRawStrip: http://www.remotesensing.org/libtiff/man/TIFFWriteRawStrip.3tiff.html

Man page on TIFFWriteEncodedStrip: http://www.remotesensing.org/libtiff/man/TIFFWriteEncodedStrip.3tiff.html

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html