]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 7 Aug 2011 01:16:47 +0000 (01:16 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 7 Aug 2011 01:16:47 +0000 (01:16 +0000)
MagickCore/colorspace.c
MagickCore/image.c

index ba130b0ab4aec0f3b01981011f026799c0f54d4f..7a5b643a4f21bd09341d35e38639d556125930c9 100644 (file)
@@ -1193,7 +1193,7 @@ MagickExport MagickBooleanType SetImageColorspace(Image *image,
   const ColorspaceType colorspace,ExceptionInfo *exception)
 {
   image->colorspace=colorspace;
-  return(MagickFalse);
+  return(MagickTrue);
 }
 \f
 /*
index 5a6dc37d740c96f1864474f2d458973acfef6c58..289477d31199c310b3f6bd0dc12460f51ab5241f 100644 (file)
@@ -2521,7 +2521,7 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
   assert(image->signature == MagickSignature);
-  status=MagickFalse;
+  status=MagickTrue;
   switch (alpha_type)
   {
     case ActivateAlphaChannel:
@@ -2558,7 +2558,6 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
       if (image->colorspace == CMYKColorspace)
         ConvertRGBToCMYK(&background);
       SetPacketPixelInfo(image,&background,&pixel);
-      status=MagickTrue;
       image_view=AcquireCacheView(image);
       #if defined(MAGICKCORE_OPENMP_SUPPORT)
         #pragma omp parallel for schedule(dynamic,4) shared(status)
@@ -3674,7 +3673,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type)
       if (image->storage_class != DirectClass)
         status=SetImageStorageClass(image,DirectClass,&image->exception);
       if (image->matte == MagickFalse)
-        (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
+        status=SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
       break;
     }
     case OptimizeType: