Installation & Requirements
System Requirements
Section titled “System Requirements”- PHP:
8.3or higher (ext-fileinforequired) - ProcessWire:
3.0.271or higher - First-Party Module Dependencies: None (standalone module)
- Image Backend (at least one):
- Vips (
libvips, recommended):ext-ffi(ffi.enable=truefor Web/FPM orffi.enable=preloadfor CLI) + systemlibvips+intervention/image-driver-vips - Imagick:
ext-imagick - GD:
ext-gd
- Vips (
Installing the Module
Section titled “Installing the Module”-
Require the package and its PHP image dependencies:
Terminal window composer require trk/intervention-image -
Refresh and install
InterventionImage:Terminal window php vendor/bin/wire module:refreshphp vendor/bin/wire module:install InterventionImage
- Ensure
intervention/image(and optionalintervention/image-driver-vips/intervention/imagehash) is available via your project’s Composervendor/autoload.php. - Log in as a superuser and navigate to Modules -> New.
- Use Add Module from Directory (enter
InterventionImage), Add Module from URL, or Add Module from Upload (ZIP archive). - Click Modules -> Refresh, locate
InterventionImageunder the Site tab, and click Install.
- Ensure
intervention/imageis installed invendor/autoload.php. - Download and extract the release archive into
site/modules/InterventionImage/. - Open Modules -> Refresh in the ProcessWire admin (or run
php vendor/bin/wire module:refresh). - Click Install next to
InterventionImageunder Modules -> Site.
After installation, open Modules -> Configure -> InterventionImage to choose your driver (auto, vips, imagick, gd), default outputFormat, quality, and responsive breakpoints.
All 8 Module Configuration Settings
Section titled “All 8 Module Configuration Settings”| 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(). |