Skip to content

Installation & Requirements

  • PHP: 8.3 or higher (ext-fileinfo required)
  • ProcessWire: 3.0.271 or higher
  • First-Party Module Dependencies: None (standalone module)
  • Image Backend (at least one):
    • Vips (libvips, recommended): ext-ffi (ffi.enable=true for Web/FPM or ffi.enable=preload for CLI) + system libvips + intervention/image-driver-vips
    • Imagick: ext-imagick
    • GD: ext-gd
  1. Require the package and its PHP image dependencies:

    Terminal window
    composer require trk/intervention-image
  2. Refresh and install InterventionImage:

    Terminal window
    php vendor/bin/wire module:refresh
    php vendor/bin/wire module:install InterventionImage

After installation, open Modules -> Configure -> InterventionImage to choose your driver (auto, vips, imagick, gd), default outputFormat, quality, and responsive breakpoints.

Setting Default Description
driver 'auto' 'auto' (vips -> imagick -> gd health probe), 'vips', 'imagick', or 'gd'.
options ['delayed', 'lqip', 'lazyload', 'inlineLazyload', 'strip', 'progressive'] Feature flags controlling delayed .queue rendering, LQIP generation, lazyload fade-in, EXIF stripping, progressive encoding, plus optional upscale, avifAdd, and webpAdd.
quality 80 Default compression quality (0..100) for generated variations.
outputFormat 'webpOnly' Default variation output format: 'original', 'webpOnly', or 'avifOnly'.
breakpoints 640=s|Small, 960=m|Medium, 1200=+l|Large, 1600=xl|Extra Large Multiline breakpoints (value=key|Label; + marks the default).
aspectRatios 1:1=square, 16:9=+landscape, 3:4=portrait Multiline aspect ratios registered into $config->imageSizes.
columnWidths '1-1,1-2,1-3,2-3,1-4,3-4,1-5,1-6' Grid column fractions combined with aspect ratios (e.g., landscape-1-2).
factors '0.5,1,1.5,2' Scaling multipliers used by $image->srcset().

Next steps