Upgrading & Uninstalling
InterventionImage creates zero custom database tables, zero templates or fields, and zero RBAC permissions. All generated assets live as standard variations and sidecar files inside site/assets/files/.
Upgrading InterventionImage
Section titled “Upgrading InterventionImage”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/intervention-imagephp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (InterventionImage), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files (ensureintervention/imageinvendor/autoload.phpmeets the new version requirement). - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/InterventionImage/with the new release directory (ensureintervention/imageinvendor/autoload.phpmeets the new version requirement). - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstalling InterventionImage
Section titled “Uninstalling InterventionImage”-
Remove custom
InterventionImagecalls (render(),attrs(),lqip(),dominantColor(),palette(),colorTheme(),imageHash(),watermark(),contain(),clearImageVariations()) from yoursite/templates/. -
Optionally remove sidecar cache files (
.lqip.webp,.colors.json,.hashes.json,.queue) before uninstalling:Terminal window php vendor/bin/wire image:clear --lqip-only --force --jsonphp vendor/bin/wire image:clear --colors-only --force --jsonphp vendor/bin/wire image:clear --hashes-only --force --jsonphp vendor/bin/wire image:clear --queue-only --force --json -
Uninstall the module from Modules -> Site -> InterventionImage -> Uninstall or via CLI:
Terminal window php vendor/bin/wire module:uninstall InterventionImage