Insufficient Data For An Image Error - Printing PDF Books Using ImageSharp And PdfSharpCore In C#
Hello and Good Day!
Cheers!
As we continue to optimize our catalog software specifically printing of pdf books module, some of our catalogs were printed smoothly and other were not which specifically throws an Insufficient Data For An Image error when opening those books.
I tried different solutions in .NET but none of them seem to resolve the problem. After investigating the images, we discovered that these photos which happens to be the templates for our books, were created using different types of graphics and CAD software. What we did was to open these images in Adobe Photoshop and save those files so that these photos program property is consistent. Since the error still persists, the next step I did was to change the image property in Photoshop specifically the Color Representation that has a value of Uncalibrated.
In Photoshop, Uncalibrated is equivalent to Grayscale.
Changing the image's Grayscale/Uncalibrated to RGB Color in Photoshop solved the Insufficient Data For An Image error.
To summarize, below are the steps.
1. Open the images using Adobe Photoshop.
2. Save those files.
3. Change the Mode from Grayscale to RGB Color.
1. Open the images using Adobe Photoshop.
2. Save those files.
3. Change the Mode from Grayscale to RGB Color.
Cheers!
Comments
Post a Comment