diff --git a/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs b/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs index ad50d3ae..00d91e30 100644 --- a/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs +++ b/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs @@ -75,7 +75,7 @@ private static Span UnpackComponents(Span input, int bitsPerComponen // TODO - 1bpc + DeviceGray is required for JBIG2 but needs to be investigated // Why is this required? This does not belong here imo - if (bitsPerComponent == 1 && colorSpace == ColorSpace.DeviceGray) + if (bitsPerComponent == 1 && colorSpace != ColorSpace.Indexed) { foreach (byte b in input) {