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;
/*
#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"
*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)
{
}
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)