Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/5027
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 9, 2022
1 parent ebea37d commit 6516558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/pnm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
{
packet_size=1;
(void) CopyMagickString(type,"GRAYSCALE",MagickPathExtent);
if (IdentifyImageMonochrome(image,exception) != MagickFalse)
if (GetQuantumRange(image->depth) == 1)
(void) CopyMagickString(type,"BLACKANDWHITE",MagickPathExtent);
break;
}
Expand Down

0 comments on commit 6516558

Please sign in to comment.