Skip to content

InterventionImage for ProcessWire

InterventionImage (trk/intervention-image) is a high-performance image processing, responsive <picture> rendering, color analysis, and perceptual fingerprinting engine for ProcessWire Pageimage assets powered by Intervention Image v4.4.

Vips, Imagick & GD Auto-Probe

Automatically probes drivers via DriverInterface::checkHealth() in vips -> imagick -> gd order for fast, low-memory WebP and AVIF variation generation.

Responsive Picture, Srcset & LQIP

Render complete <picture> markup with render(), attrs(), srcset(), aspect-ratio presets, focal-point cropping, Base64 lqip() placeholders, and delayed .queue rendering.

Visual Color Extraction

Extract cached dominantColor(), multi-swatch palette(), and 6-token colorTheme() palettes (vibrant, muted, darkVibrant, darkMuted, lightVibrant, lightMuted) stored in {basename}.colors.json.

Perceptual Hashing & Dedup

Fingerprint images with dhash, phash, ahash, or bhash via imageHash(), compare Hamming distances with hashDistance(), and detect near-duplicates with isSimilar().

Requirement Minimum Version Notes
PHP 8.3+ Requires ext-fileinfo plus at least one driver backend (ext-ffi + libvips, ext-imagick, or ext-gd).
ProcessWire 3.0.271+ Standalone module (autoload on frontend requests) with zero first-party module dependencies.
CLI Tooling processwire-console (optional) Unlocks image:queue and image:clear batch commands.

Next steps