This project has moved. For the latest updates, please go here.

can not read Group 3 TIFF Image

Dec 1, 2015 at 7:25 AM
ImproperImageHeader
error/tiff.c/ReadTIFFImage/1215

MagickReadSettings settings = new MagickReadSettings()
{
Format = MagickFormat.Fax
};

using (MemoryStream stream = new MemoryStream())
{
using (MagickImage image = new MagickImage(sourceFiles[j], settings))
{
    image.Write(stream, MagickFormat.Pdf);
}
}

the image you can download this link : https://www.dropbox.com/s/8gtu1g5xfdp571p/58357_04469.tif?dl=0
Coordinator
Dec 1, 2015 at 10:55 AM
Your tiff file is missing a mandatory TIFF tag called PhotometricInterpretation (http://www.awaresystems.be/imaging/tiff/tifftags/photometricinterpretation.html)
There is no default for PhotometricInterpretation, and it is required. Do not rely on applications defaulting to what you want.
Dec 1, 2015 at 11:38 AM
Thanks for reply dlemstra

Is there a way to skip this situation ?
Because of that, I do not have hard copy these images
i just need this images convert to pdf files
Coordinator
Dec 1, 2015 at 11:49 AM
What do you mean by skip this situation? Your image is invalid and cannot be converted to a PDF file.
Dec 1, 2015 at 1:18 PM
Ok. i see now is not possible
Thanks for help dlemstra