Transparency detection in palette PNGs #2208
-
Is it possible to detect if a palette-based PNG has transparency without having to decode the whole image? var imageInfo = Image.Identify("example.png");
var metadata = imageInfo.Metadata.GetPngMetadata();
var colorType = metadata.ColorType; // PngColorType.Palette
var transparency = metadata.HasTransparency; // false
var bpp = imageInfo.PixelType.BitsPerPixel; // 8 Am I missing something or is it just not possible? |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Aug 19, 2022
Replies: 1 comment 3 replies
-
You're looking for |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Seishiin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're looking for
Image.Identify