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
February 2005

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

2005.02.11 06:07 "facing problems with writing compressed tiff image strips.", by Priyanshu Sharma
2005.02.14 10:18 "make the libtiff library compression enabled??", by Priyanshu Sharma
2005.02.14 10:53 "Re: make the libtiff library compression enabled??", by Joris Van Damme
2005.02.16 04:09 "Re: make the libtiff library compression enabled??", by Priyanshu Sharma
2005.02.14 18:08 "Re: make the libtiff library compression enabled??", by <melser.anton@gmail.com>

2005.02.11 06:07 "facing problems with writing compressed tiff image strips.", by Priyanshu Sharma

Hi all,

I am new to the community as this is my first post, and recently i
have started my work on TIFF images. Using the libtiff library version
3.6.1 i am trying to read the compressed data strip( ie using
TIFFReadEncodedStrip() in my code).

i am giving my logic below.

NoOfStrips = TIFFNumberOfStrips(fp_TIFF_read);
buf size i am taking as the StripByteCount for the respective strips.
for (int line =0;line<NoOfStrips;line++)
{
   buf = (char*) malloc(bufSize  * sizeof(char));

		
   if(TIFFReadEncodedStrip(fp_TIFF_read,line,buf, bufSize) < 0)
   {
      printf("\n\n error in reading the file\n\n");
      res = false;
      break;
   }

   if(TIFFWriteEncodedStrip(fp_TIFF_write,line,buf, bufSize) < 0)
   {
      printf("\nerror while writing TIFF file");
      res = false;
      break;
   }
      
   free(buf);

}

ideally this code should copy the data strips into another tiff file
where i have already written the respective tags.

it is not working in this case. i am unable to figure out my mistake.
Can anyone help me in this regard.

Thanx in advance
Priyanshu
BITS, Pilani