Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
2 posts • Page 1 of 1
I am using Magick.NET Q8 to work with a variety of images from .NET, and I've noticed that when loading an 8-bit grayscale JPG it reports the ColorType as Palette, with a ColormapSize of 256. To the best of my knowledge, JPEG doesn't support any palette color, and 8-bit grayscale really is stored as a single-channel image - technically just the Y component of YCbCr. Given that, shouldn't a grayscale loaded from a .jpg file report a ColorType == ColorType.Grayscale, and ColormapSize == -1? Is this an ImageMagick thing or a Magick.NET thing? Or am I just misunderstanding something?
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
IM is reporting how the image is stored in memory, after the file has been read. In general this may be different to how the data was stored in the file.superstator wrote:... when loading an 8-bit grayscale JPG it reports the ColorType as Palette, ...
snibgo's IM pages: im.snibgo.com