Skip to content

Commit

Permalink
details.Type != ColorSpace.Indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
BobLd committed Jan 20, 2025
1 parent 01a1d18 commit a223183
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static Span<byte> UnpackComponents(Span<byte> 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)
{
Expand Down

0 comments on commit a223183

Please sign in to comment.