mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
rgba_within checked an image's size as RGBA against the allowance it was given (2 GB on the desktop), then decoded the image within the image crate's default limit of 512 MB. An image whose decoded pixels take more than 512 MB, such as an RGBA image of 11,586 × 11,586 pixels, was refused although the canvas draws it: the Eyedropper picked up nothing from it, and Edit Colors, Recolor Artwork, print separations and the color adjustment effects in export and Expand Appearance left its pixels as they were. The decoder's limit is now the allowance that rgba_within is given. An image decoded as RGBA is no longer copied before it is used.