Thanks a lot Su. That is a very detailed explanation. I am going through the 
details. I will get back to you.

Best Regards,
Ganesh.

Ganesh Bondili
Principal Software Engineer

[cid:Kofax_ab6d7362-d88f-454c-a5e0-9fbdacd27b9c.jpg]

Kofax India Private Limited
V IT Park, Capella Building, Floor 6, Plot No. 17, Software Units Layout
Hyderabad, Madhapur 500081
India

Tel: +91 40 45459949
Fax: +91 40 45459922
[email protected]

 [cid:WorkLikeTomorrow_5b748fe4-9e86-42f8-b5af-b79a2d6ee254.jpg]

.

______________________________________________________________________________________________________________________________________________________________

This communication is only for the use of the intended recipient. It may 
contain confidential or proprietary information. If you are not the intended 
recipient or have received this communication in error, please notify the 
sender via phone and destroy this communication immediately.


From: Sulau <[email protected]>
Sent: Friday, April 21, 2023 7:32 PM
To: Ganesh Bondili <[email protected]>
Cc: [email protected]
Subject: AW: [Tiff] [EXTERNAL] Re: Specific image fails with error at 
TIFFWriteRawStrip function(26659675)

Hi Ganesh

With the testfile LibTIFFCrsh1.cpp I get the error message: "TIFFWriteRawStrip: 
Must set "ImageWidth" before writing data."

That is, you can't just create a default TIFF directory (out = 
TIFFOpen(sInputSinglePage.c_str(), "w");) and then write image data to that 
directory without first setting up the mandatory tags accordingly.

Finally, you have to write the TIFF directory to the file. This is done by 
TIFFClose().
You should also close the input file at the end.

Finally, the input image data are "Group3Fax" compressed. That means the 
function TIFFReadRawStrip() reads nonsense. You need to read with 
TIFFReadEncodedStrip().

You should read the TIFF documentation at: 
http://www.simplesystems.org/libtiff/index.html
and get familiar with copying of data using as example: 
https://gitlab.com/libtiff/libtiff/-/blob/master/tools/tiffcp.c . I would 
suggest taking tiffcp.c in the debugger and debug how your file is copied there.

Another example, how to write a simple TIFF image is given in 
https://gitlab.com/libtiff/libtiff/-/blob/master/test/custom_dir.c line 63 to 
128.

Regards
Su

Von: Tiff [mailto:[email protected]] Im Auftrag von Ganesh Bondili 
via Tiff
Gesendet: Mittwoch, 19. April 2023 20:11
An: Bob Friesenhahn 
<[email protected]<mailto:[email protected]>>
Cc: '[email protected]' <[email protected]<mailto:[email protected]>>
Betreff: Re: [Tiff] [EXTERNAL] Re: Specific image fails with error at 
TIFFWriteRawStrip function(26659675)

Thank you Bob for the information. Does this mean the TIFF internal data is 
Huge size for example 4GB or more. But the file Test.TIFF itself is just 370 KB.

Hi LibTIFF team, Are there any other replies suggesting root-cause for this 
Test.TIFF error. Is the Test.TIFF is as per TIFF standard. Are there any other 
problems with this input TIFF or solution to successfully copy/write strips 
individually to TIFF files. Why is the size of single strip is returned as such 
a huge size(IS any field has wrong data). Will 64 bit of LibTIFF binaries will 
resolve this issue is some way.

Regards,
Ganesh.


_______________________________________________
Tiff mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/tiff

Reply via email to