Skip to content

Why InterventionImage?

ProcessWire’s built-in Pageimage::size() is reliable for simple JPEG/PNG thumbnails, but media-heavy sites quickly hit memory ceilings, slow first-load page renders, and repetitive <picture> boilerplate when serving modern AVIF/WebP responsive images.

InterventionImage vs. Default ProcessWire Image Sizing

Section titled “InterventionImage vs. Default ProcessWire Image Sizing”
Capability Default ImageSizerEngineGD InterventionImage (v4.4)
Image backend GD only (or separate IMagick module) Runtime checkHealth() auto-probe across Vips (libvips) -> Imagick -> GD
Modern output formats JPEG/PNG + optional WebP Native webpOnly, avifOnly, or original plus <picture> avifAdd / webpAdd sources
First-request latency Blocks HTTP response while encoding all srcset variants Delayed .queue rendering defers heavy encoding to on-demand or CLI image:queue batch workers
Responsive markup & presets Hand-written <picture> and srcset strings Built-in breakpoints, aspectRatios, columnWidths, factors, render(), attrs(), srcset(), and lqip()
Watermarks & filters Limited basic operations crop(), contain(), watermark(), trim, blur, sharpening, colorize, grayscale, pixelate, and custom modifiers
Color & duplicate intelligence Not included Cached dominantColor(), palette(), colorTheme(), and dhash/phash/ahash/bhash similarity matching

Next steps