Added check for the channel type. Credit to OSS-Fuzz
Added check for the channel type.
Credit to OSS-Fuzz

Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick