You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Client-side media: very large (especially interlaced) images fail processing instead of falling back to the server #78950
When client-side media processing is enabled, uploading a very large image can fail outright instead of falling back to the server. wasm-vips is hard-capped at 1 GiB of WASM memory (kleisauke/wasm-vips#106), so a high-megapixel image — which needs roughly width × height × 4 bytes for its decoded buffer plus working memory for the encode step — can exhaust the cap and throw.
This is especially common for interlaced/progressive JPEGs (and Adam7-interlaced PNGs), which cannot be decoded with shrink-on-load and so must be buffered in full.
Enable client-side media processing (Chromium 137+).
Upload a very large interlaced/progressive JPEG — for example flower.jpg (20000 × 11857 px, ~8.1 MB) from the report.
Processing fails.
Expected
The image uploads successfully. Images that are too large to process safely in the browser should fall back to server-side processing (which has no comparable per-image memory ceiling), the same way they already upload fine through the normal media library.
Actual
The upload fails with an out-of-memory error, e.g.:
Caused by: Error: unable to call VipsForeignSaveJpegTarget
The same image uploads without issue through the standard (server-side) media library path.
Activity