combine_image=DestroyImage(combine_image);
return((Image *) NULL);
}
- (void) SetImageColorspace(combine_image,colorspace == UndefinedColorspace ?
- sRGBColorspace : colorspace,exception);
+ if (colorspace != UndefinedColorspace)
+ (void) SetImageColorspace(combine_image,colorspace,exception);
+ else
+ if (fabs(image->gamma-1.0) <= MagickEpsilon)
+ (void) SetImageColorspace(combine_image,RGBColorspace,exception);
+ else
+ (void) SetImageColorspace(combine_image,sRGBColorspace,exception);
switch (combine_image->colorspace)
{
case UndefinedColorspace: