Files
pixa/internal/imageprocessor
sneak 9a97dfc299
check / check (push) Canceled after 0s
Scale both sides of a fit=cover image by the same amount (part of #282)
cropCentreAndResize cut the centre to whole source pixels and forced
that to the requested size, so the two sides were scaled by different
amounts: a 16x16 source at 100x60 came out squashed by 4%. It now
widens the centre to whole source pixels and lets thumbnail with a
centre crop scale that by the one amount next uses and cut the output
from it. thumbnail copies the scaled image into memory, which is larger
than the output by less than one scaled source pixel on each side.
TODO.md says so.

Model: opus-5-5
2026-10-15 23:36:42 +00:00
..