image - Detecting Incorrect ImageLength in Tiff Tag -


I found out that there may be an incorrect image length tiff tag in the quarrel documents. Most viewers detect this and show the image in their correct length, but I want to do it programmatically, is there a library that can help me? (In any language)

The short answer is that the "real" image lang will give you the image Decode and see what happens.

In theory, you can increase the number of rows and multiply by the number of rows, which will give you a length that the image can not be higher, but if the last strip is less than the line per strip , You have to decode the last line to know for sure. For tiles, you can do something similar.

This only applies when the image snatches or tiles.

Otherwise, to find out, you decode is .

Comments