This project has moved and is read-only. For the latest updates, please go here.

Determine hidden alpha channels

May 4, 2016 at 7:19 PM
I am currently trying to process an image that has 3 hidden alpha channels. I was wondering if there was any information on the MagickImage class I could use to determine if the channels are hidden or not. Depending on the visibility of these channels the arguments I use for imagemagick's convert will change.

Right now I see "Alpha" is returned in the MagickImage.Channels list and MagickImage.HasAlpha is true after creating a MagickImage object

I am using Magick.NET-Q16-x64
May 4, 2016 at 10:03 PM
Can you share your image?
May 4, 2016 at 10:13 PM
May 5, 2016 at 8:51 PM
Magick.NET cannot handle the "extra samples" but I saw that you got an answer that helped you here:
May 5, 2016 at 9:02 PM
Yes that helped us with how to convert the image with these channels, but I was hoping there would be some indication from the image that told us if those channels were hidden or not. We do encounter images where we do not want to turn off the alpha channel.

Thanks for clearing this up though, at least we know what is going on now!