oxipng/benches
andrews05 174f36ad8f
Improve indexed to grayscale conversion (#674)
If no palette reduction occurred (or palette reductions were off), a
fully transparent palette entry may not have been zeroed to black. By
ensuring this gets cleaned in the `indexed_to_channels` transformation,
we may able to achieve a grayscale conversion that would otherwise have
been RGB.

This is the final piece of the puzzle in #649 to achieve better file
sizes on the first run and avoid further changes on a second run.

Results from the images in #649 (combining this PR and #673):
9.1.3 1st run: 2,191,773
9.1.3 2nd run: 2,191,629
PR 1st run: 2,191,380
PR 2nd run: 2,191,380
2025-02-02 18:26:18 +01:00
..
deflate.rs Refactor optimize_raw (#670) 2025-01-29 20:53:11 +01:00
filters.rs Fix new Clippy lints 2025-01-30 18:39:23 +01:00
interlacing.rs Fix some new nightly Clippy lints and run rustfmt with prettier config 2024-02-20 19:12:35 +01:00
reductions.rs Improve indexed to grayscale conversion (#674) 2025-02-02 18:26:18 +01:00
strategies.rs Clippy 2025-01-02 09:15:24 +13:00
zopfli.rs Fix some new nightly Clippy lints and run rustfmt with prettier config 2024-02-20 19:12:35 +01:00