]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 7 Dec 2017 11:48:30 +0000 (06:48 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 7 Dec 2017 11:48:30 +0000 (06:48 -0500)
coders/pnm.c

index 3ee13e8c456b9681b4c64ea127a614b839352ec6..7e2e45c74a085dac8c8501c320e8751944c440b8 100644 (file)
@@ -1661,7 +1661,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
           {
             packet_size=1;
             (void) CopyMagickString(type,"GRAYSCALE",MagickPathExtent);
-            if (IsImageMonochrome(image) != MagickFalse)
+            if (IdentifyImageMonochrome(image,exception) != MagickFalse)
               (void) CopyMagickString(type,"BLACKANDWHITE",MagickPathExtent);
             break;
           }