combine_image=DestroyImage(combine_image);
return((Image *) NULL);
}
- (void) SetImageColorspace(combine_image,colorspace == UndefinedColorspace ?
- sRGBColorspace : colorspace,exception);
+ if ((colorspace == UndefinedColorspace) || (image->number_channels == 1))
+ (void) SetImageColorspace(combine_image,sRGBColorspace,exception);
+ else
+ (void) SetImageColorspace(combine_image,colorspace,exception);
if ((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0)
combine_image->alpha_trait=BlendPixelTrait;
/*