Skip to main content
NextcloudAIO
NextcloudAIO Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
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

Offloading HEIC & RAW Previews to Imaginary Container
Telemetry verified 2026-11-15 by TeamDrive Storage.

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 EnginePeak PHP RSS100-Photo Gallery RenderMemory Profile
Built-in PHP GD/Imagick380 MB/worker18.4 secondsHigh OOM risk
AIO Imaginary (libvips)68 MB/worker2.9 secondsBounded 512 MB sidecar
512 MB burst · -82% PHP RSS spike · libvips Go engine InterServer ($6/TB)UltaHost VDS ($37.50)