Donate

Insufficient Data For An Image Error - Printing PDF Books Using ImageSharp And PdfSharpCore In C#

Hello and Good Day!

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.
Insufficient Data For An Image
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.
Insufficient Data For An Image Error - Printing PDF Books Using ImageSharp And PdfSharpCore In C#
In Photoshop, Uncalibrated is equivalent to Grayscale.
Insufficient Data For An Image Error - Printing PDF Books Using ImageSharp And PdfSharpCore In C#
Changing the image's Grayscale/Uncalibrated to RGB Color in Photoshop solved the Insufficient Data For An Image error.
Insufficient Data For An Image Error - Printing PDF Books Using ImageSharp And PdfSharpCore In C#
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.


Cheers!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.