mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-29 12:57:09 -06:00
Finding 37. decode_fits charged every picture 8 bytes a pixel (RGBA8 decode plus its copy), but a 16-bit or float image decodes to 8-16 bytes a pixel before conversion, so the real peak was up to 2.5x the budget. geom::decode_peak_fits takes the decoder's native bytes per pixel; render's decode_pixmap_within and pdf's load_image_within read it from the decoder (header only, same limits) before decoding. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>