+2016-12-07 7.0.3-10 Cristy <quetzlzacatenango@image...>
+ * Set colorspace to sRGB if -append has non-homogenous colorspaces (reference
+ https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29105).
+
2016-12-05 7.0.3-9 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.3-9, GIT revision 19139:6fed3f1:20161205.
*append_image;
MagickBooleanType
+ homogeneous_colorspace,
status;
MagickOffsetType
width=images->columns;
height=images->rows;
depth=images->depth;
+ homogeneous_colorspace=MagickTrue;
next=GetNextImageInList(images);
for ( ; next != (Image *) NULL; next=GetNextImageInList(next))
{
if (next->depth > depth)
depth=next->depth;
+ if (next->colorspace != images->colorspace)
+ homogeneous_colorspace=MagickFalse;
if (next->alpha_trait != UndefinedPixelTrait)
alpha_trait=BlendPixelTrait;
number_images++;
append_image=DestroyImage(append_image);
return((Image *) NULL);
}
+ if (homogeneous_colorspace == MagickFalse)
+ (void) SetImageColorspace(append_image,sRGBColorspace,exception);
append_image->depth=depth;
append_image->alpha_trait=alpha_trait;
(void) SetImageBackgroundColor(append_image,exception);