A generic error occurred in GDI+ on AddImage

Adding a TIFF to a PDF with AddImage fails.
ErrorCode -2147467259
{“A generic error occurred in GDI+.”}

This seems to be the same issue reported in 23428 and 167407.
I need a workaround.

Aspose.Pdf.Document workingDoc = new Aspose.Pdf.Document();
workingDoc.Pages.Add();
Aspose.Pdf.Rectangle myRectangle = new Aspose.Pdf.Rectangle(10, 0, 575, 822);
workingDoc.Pages[1].AddImage(item, myRectangle); // Raises error -2147467259

@varsoil

Would you kindly share your sample TIFF image in ZIP format. We will test the scenario in our environment and address it accordingly.

See attached example input TIFF. Thanks.
202323.zip (45.8 KB)

@varsoil

It seems like the file you have shared is damaged or corrupted. Error.png (2.2 KB) Could you please share a correct file which can be viewed and used for testing.

Yes. I confirmed that Microsoft viewers have an unspecified problem displaying the file.
However,
IrfranView
FastStone Image Viewer
Snagit Editor
Multi-Page TIFF Editor
EscapeE
And our enterprise content manager
handle it fine.

Height= 3300 width=2550 JPEG compression
8-bit Black & white image
X resolution = 300 Y resolution = 300
Creating program name: INMAC2

@varsoil

We are checking this and will get back to you shortly.

Additional Information: The TIFF files are encoded with JPEG 6B compression. This compression has been deprecated by JPEG 7 compression. Regardless, we still need to process these files.

@varsoil

We have logged an investigation ticket as PDFNET-46993 in our issue tracking system. We will further look into details of the scenario and keep you posted with the status of ticket resolution. Please be patient and spare us little time.

We are sorry for the inconvenience.