Files
photocraft/crates/algo/src
David MannandClaude Opus 5.5 4aa7984eb0 Cutout: non-finite samples count as 0 before tracing
A NaN or infinite sample (32-bit documents can hold them) reached the
region means unchanged, so a region's colour, the edge offsets built from
it and the fill could turn non-finite or leave pixels uncovered. trace now
replaces non-finite channels with 0 before banding (copying the image only
when one is present).

Test: NaN and ±inf samples give finite region colours, outlines and pixels
with full coverage; it fails without the fix. (CodeRabbit review on #10328.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 16:56:58 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…