Image
*canvas;
- if ((channel_op == ExtractChannelOp) && (channels == 1))
- {
- destination_image->colorspace=GRAYColorspace;
- InitializePixelChannelMap(destination_image);
- }
status=SetImageStorageClass(destination_image,DirectClass,exception);
if (status == MagickFalse)
{
return(destination_image);
}
destination_channel=(PixelChannel) i;
+ if (LocaleCompare(token,"gray") == 0)
+ (void) SetImageAlpha(destination_image,GrayColorspace,exception);
if ((LocaleCompare(token,"black") == 0) ||
(LocaleCompare(token,"c") == 0) ||
(LocaleCompare(token,"cyan") == 0) ||
if (status == MagickFalse)
break;
}
- if ((channel_op == ExtractChannelOp) && (channels == 1))
- {
- destination_image->colorspace=GRAYColorspace;
- InitializePixelChannelMap(destination_image);
- }
status=SetImageStorageClass(destination_image,DirectClass,exception);
if (status == MagickFalse)
{