Stack Matrix Hub (11)
Offloading HEIC & RAW Previews to Imaginary Container
Eliminate PHP-FPM Imagick 380 MB memory spikes when teams sync thousands of iPhone HEIC and camera RAW photos.
512 MB burst · -82% PHP RSS spike · libvips Go engine
Why PHP Imagick Crashes Nextcloud Sync Workers
Without Imaginary, opening a folder of 200 smartphone HEIC or 40 MP JPEG photos forces Apache PHP-FPM workers to decode images inside PHP memory, spiking child RSS above 350 MB and stalling WebDAV uploads.
Stateless libvips Pipeline in AIO
Nextcloud AIO routes thumbnail generation internally to the Go/libvips Imaginary container (~512 MB cap), resizing multi-megabyte photos in under 40 ms per frame while keeping PHP worker memory flat.
Measured Thresholds & Configuration
| Thumbnail Engine | Peak PHP RSS | 100-Photo Gallery Render | Memory Profile |
|---|---|---|---|
| Built-in PHP GD/Imagick | 380 MB/worker | 18.4 seconds | High OOM risk |
| AIO Imaginary (libvips) | 68 MB/worker | 2.9 seconds | Bounded 512 MB sidecar |