]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 13 Sep 2014 23:12:14 +0000 (23:12 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 13 Sep 2014 23:12:14 +0000 (23:12 +0000)
MagickCore/colorspace.c
MagickCore/decorate.c

index 0ea8c8a502bede2baccbd1afd5cec51ff66e6722..ef586b9c2195eee6407fc3553f9c5d206ef485e4 100644 (file)
@@ -1139,9 +1139,6 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (image->colorspace == colorspace)
     return(MagickTrue);
-  if ((image->colorspace == GRAYColorspace) && (image->gamma != 1.0) &&
-      (colorspace == sRGBColorspace))
-    return(MagickTrue);
   if (colorspace == UndefinedColorspace)
     return(SetImageColorspace(image,colorspace,exception));
   /*
index de07ed5f32e1a094968be7ade55e47219ca8ecfe..8f75a301c9d11699ca713565a32ef38908cb3878 100644 (file)
@@ -230,12 +230,6 @@ MagickExport Image *FrameImage(const Image *image,const FrameInfo *frame_info,
       frame_image=DestroyImage(frame_image);
       return((Image *) NULL);
     }
-  if ((IsPixelInfoGray(&frame_image->border_color) == MagickFalse) &&
-      (IsGrayColorspace(frame_image->colorspace) != MagickFalse))
-    (void) SetImageColorspace(frame_image,sRGBColorspace,exception);
-  if ((frame_image->matte_color.alpha_trait == BlendPixelTrait) &&
-      (frame_image->alpha_trait != BlendPixelTrait))
-    (void) SetImageAlpha(frame_image,OpaqueAlpha,exception);
   frame_image->page=image->page;
   if ((image->page.width != 0) && (image->page.height != 0))
     {