]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 9 May 2015 12:27:33 +0000 (12:27 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 9 May 2015 12:27:33 +0000 (12:27 +0000)
MagickCore/channel.c
MagickCore/version.h
MagickWand/mogrify.c
MagickWand/operation.c

index 559e3ad9cc406c8035bbff68e6514da74aa566a6..e69eac59b53736446d05996afea17e8064bb16e7 100644 (file)
@@ -503,7 +503,8 @@ MagickExport Image *CombineImages(const Image *image,
       combine_image=DestroyImage(combine_image);
       return((Image *) NULL);
     }
-  (void) SetImageColorspace(combine_image,colorspace,exception);
+  (void) SetImageColorspace(combine_image,colorspace == UndefinedColorspace ?
+    sRGBColorspace : colorspace,exception);
   if ((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0)
     combine_image->alpha_trait=BlendPixelTrait;
   /*
index 332ca6d000babf5dfe9db121bfd0527f04fa62cc..f6c8101998b7c2b49495446de83b08df144d68cd 100644 (file)
@@ -48,7 +48,7 @@ extern "C" {
 #define MagickppLibAddendum  "-1"
 #define MagickppLibInterface  0
 #define MagickppLibMinInterface  0
-#define MagickReleaseDate  "2015-05-05"
+#define MagickReleaseDate  "2015-05-09"
 #define MagickChangeDate   "20120427"
 #define MagickAuthoritativeLicense  \
   "http://www.imagemagick.org/script/license.php"
index 1351e10fd5b0103942b1ec9b97cecf8f88c26162..61c749b218eb32fbf19f67c95b82950ed0a2f20b 100644 (file)
@@ -7676,8 +7676,10 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
               *combine_image;
 
             (void) SyncImagesSettings(mogrify_info,*images,exception);
-            colorspace=(ColorspaceType) ParseCommandOption(
-              MagickColorspaceOptions,MagickFalse,argv[i+1]);
+            colorspace=UndefinedColorspace;
+            if (*option == '-')
+              colorspace=(ColorspaceType) ParseCommandOption(
+                MagickColorspaceOptions,MagickFalse,argv[i+1]);
             combine_image=CombineImages(*images,colorspace,exception);
             if (combine_image == (Image *) NULL)
               {
index 8b102cb3effee820aabe815575d908dd04b70100..936e87dce382505f114175402c23a57d1e164e48 100644 (file)
@@ -3733,7 +3733,7 @@ WandPrivate MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
         }
       if (LocaleCompare("combine",option+1) == 0)
         {
-          parse=(ssize_t) _images->colorspace;
+          parse=(ssize_t) UndefinedColorspace;
           if ( IfPlusOp )
             parse=ParseCommandOption(MagickColorspaceOptions,MagickFalse,arg1);
           if (parse < 0)