Convert tiff file failed due to "InsufficientImageDataInFile"
Posted: 2018-11-01T20:32:17-07:00
Hi,
I have a tiff file store at google drive: https://drive.google.com/file/d/1TOZu9l ... sp=sharing
I tried to convert this file from "tiff" to "tiff".
And I get the exception: InsufficientImageDataInFile
As I debug, TIFFScanlineSize(tiff) is 213 and GetBlobSize(image) is 186, so it throws the exception:
I have a tiff file store at google drive: https://drive.google.com/file/d/1TOZu9l ... sp=sharing
I tried to convert this file from "tiff" to "tiff".
And I get the exception: InsufficientImageDataInFile
As I debug, TIFFScanlineSize(tiff) is 213 and GetBlobSize(image) is 186, so it throws the exception:
The problem is I don't understand why this check happens? My file seems fine:if(((MagickSizeType)TIFFScanlineSize(tiff)) > GetBlobSize(image))
ThrowTIFFException(CorruptImageError, "InsufficientImageDataInFile");
Thankstiffinfo.exe 199712.tiff
TIFF Directory at offset 0x3c (60)
Image Width: 1704 Image Length: 11
Bits/Sample: 1
Compression Scheme: CCITT Group 4
Photometric Interpretation: min-is-black
Orientation: row 0 top, col 0 lhs
Rows/Strip: 11
Planar Configuration: single image plane