mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-04 19:41:51 -05:00
ba9e9bb5c9
Pictures in a plugin panel were capped by compressed bytes and by 2,048 px a side each, so small, highly compressible images could expand into hundreds of megabytes of textures. All the pictures a panel shows are now decoded within 2 x 2048 x 2048 pixels together; those past it show the can't-be-shown placeholder. Only the pictures shown in a frame stay decoded, so hidden or replaced ones free their share, and one refused for room is tried again once room frees up.