]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 9 May 2013 12:31:08 +0000 (12:31 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 9 May 2013 12:31:08 +0000 (12:31 +0000)
MagickCore/constitute.c

index cafaeda65762f19aa96137f5071e72bd1822e788..5079d8735f099d06ab036f2666697523a606987e 100644 (file)
@@ -40,6 +40,7 @@
   Include declarations.
 */
 #include "MagickCore/studio.h"
+#include "MagickCore/attribute.h"
 #include "MagickCore/blob.h"
 #include "MagickCore/blob-private.h"
 #include "MagickCore/exception.h"
@@ -1098,8 +1099,8 @@ MagickExport MagickBooleanType WriteImage(const ImageInfo *image_info,
       /*
         sRGB masquerading as a grayscale image?
       */
-      if (IsGrayImage(image,&image->exception) == MagickFalse)
-        (void) SetImageColorspace(image,sRGBColorspace);
+      if (IsImageGray(image,exception) == MagickFalse)
+        (void) SetImageColorspace(image,sRGBColorspace,exception);
     }
   (void) SyncImageProfiles(image);
   option=GetImageOption(image_info,"delegate:bimodal");