Skip to content

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/.

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/intervention-image
    php vendor/bin/wire module:refresh
  1. Remove custom InterventionImage calls (render(), attrs(), lqip(), dominantColor(), palette(), colorTheme(), imageHash(), watermark(), contain(), clearImageVariations()) from your site/templates/.

  2. 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 --json
    php vendor/bin/wire image:clear --colors-only --force --json
    php vendor/bin/wire image:clear --hashes-only --force --json
    php vendor/bin/wire image:clear --queue-only --force --json
  3. Uninstall the module from Modules -> Site -> InterventionImage -> Uninstall or via CLI:

    Terminal window
    php vendor/bin/wire module:uninstall InterventionImage

Next steps