Restore checking for correct image size in PngFromPdfImageFactory

This commit is contained in:
BobLd
2024-08-20 19:18:31 +01:00
parent a8684984eb
commit b4649758c6
@@ -46,6 +46,11 @@
bytesPure[actualSize - 2] == ReadHelper.AsciiCarriageReturn &&
bytesPure[actualSize - 1] == ReadHelper.AsciiLineFeed);
if (!isCorrectlySized)
{
return false;
}
if (image.ColorSpaceDetails.BaseType == ColorSpace.DeviceCMYK || numberOfComponents == 4)
{
int i = 0;