oxipng/tests
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
..
files Improve indexed to grayscale conversion (#674) 2025-02-02 18:26:18 +01:00
filters.rs Fix some new nightly Clippy lints and run rustfmt with prettier config 2024-02-20 19:12:35 +01:00
flags.rs Refactor optimize_raw (#670) 2025-01-29 20:53:11 +01:00
interlaced.rs Cleanup tests (#656) 2024-12-02 20:58:01 +01:00
interlacing.rs Fix some new nightly Clippy lints and run rustfmt with prettier config 2024-02-20 19:12:35 +01:00
lib.rs Skip signed files or remove C2PA metadata 2024-12-26 19:03:03 +01:00
raw.rs Fix some new nightly Clippy lints and run rustfmt with prettier config 2024-02-20 19:12:35 +01:00
reduction.rs Improve indexed to grayscale conversion (#674) 2025-02-02 18:26:18 +01:00
regression.rs Cleanup tests (#656) 2024-12-02 20:58:01 +01:00
strategies.rs Fix some new nightly Clippy lints and run rustfmt with prettier config 2024-02-20 19:12:35 +01:00