Question about PngEncoderCore.SanitizeAndSetEncoderOptions #2664
Unanswered
DanTravison
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You're not missing anythingactually. We should respect the user choice but fall back to a default of None for palette images. The png specification actually recommends no filtering for palette images as that will always yeild the best result in that case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been experimenting with various approaches to minimizing PNG file sizes and have a question about a PngFilterMethod.
It appears that PngEncoderCore.SanitizeAndSetEncoderOptions ignores encoder.FilterMethod when set.
Shouldn't there be an else clause that either uses encoder.FilterMethod or uses it when colorType is no Palette?
Something like the following:
Am I missing something here?
Beta Was this translation helpful? Give feedback.
All reactions