diff --git a/MagickCore/channel.c b/MagickCore/channel.c
index 9f4dda7..f8cf6a3 100644
--- a/MagickCore/channel.c
+++ b/MagickCore/channel.c
@@ -350,10 +350,16 @@
(LocaleCompare(token,"magenta") == 0) ||
(LocaleCompare(token,"y") == 0) ||
(LocaleCompare(token,"yellow") == 0))
- SetImageColorspace(destination_image,CMYKColorspace,exception);
+ (void) SetImageColorspace(destination_image,CMYKColorspace,exception);
if ((LocaleCompare(token,"Cb") == 0) ||
(LocaleCompare(token,"Cr") == 0))
- SetImageColorspace(destination_image,YCbCrColorspace,exception);
+ (void) SetImageColorspace(destination_image,YCbCrColorspace,
+ exception);
+ if (LocaleCompare(token,"alpha") == 0)
+ (void) SetImageAlpha(destination_image,OpaqueAlpha,exception);
+ if (i >= GetPixelChannels(destination_image))
+ SetPixelMetaChannels(destination_image,i-
+ GetPixelChannels(destination_image)+1,exception);
GetMagickToken(p,&p,token);
break;
}