mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
Trim decoded the image with the decoder's default 512 MB allocation limit, so a 300 ppi roll (6614 x 59055 px, 1.56 GB as RGBA) that opens fine failed with "the image's pixels can't be read". It now decodes with the allowance opening already has (MAX_RASTER_ALLOC: 2 GB, 512 MB on the web). A CMYK image, kept as its ink amounts, has no alpha: trim leaves it alone (trimmed: false) instead of failing to decode it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>