]> granicus.if.org Git - imagemagick/commitdiff
Added check in TransformImageColorspace to see if the image is already the requested...
authordirk <dirk@git.imagemagick.org>
Fri, 21 Mar 2014 22:00:31 +0000 (22:00 +0000)
committerdirk <dirk@git.imagemagick.org>
Fri, 21 Mar 2014 22:00:31 +0000 (22:00 +0000)
MagickCore/colorspace.c

index bbd8c438859502b9d770cb0be884860032836f28..1807a649c78b014f860c6193b02da5f9676d99ba 100644 (file)
@@ -1139,6 +1139,8 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (colorspace == UndefinedColorspace)
     return(SetImageColorspace(image,colorspace,exception));
+  if (image->colorspace == colorspace)
+    return;
   /*
     Convert the reference image from an alternate colorspace to sRGB.
   */