-
-
Notifications
You must be signed in to change notification settings - Fork 887
Closed
Description
PNG decoder is not CPU intensive compared to other codecs, but we can save some memory if there is no alpha or if the PNG is grayscale. We can instantiate the Image<T> after reading the header chunk depending on header.ColorType and header.BitDepth.
It would also help preserving the original images precision in case of header.BitDepth == 16.
JimBobSquarePants and PazerOP