Super Images
Version 5.0.0
August 17, 2026
Initial public release for Craft CMS 5.
Added
Core pipeline
- Unified
GenerationService— one pipeline for Twig, Control Panel, CLI, queue, and signed runtime URLs - Deterministic derivative paths and generation identity hashing (config/ops changes produce new files, not stale cache)
- File-based existence tracking — no
GeneratedImagedatabase table; derivatives live on the configured storage adapter - Per-request memoization for existence checks and generation planning
Image drivers
- GD, Imagick, and Libvips (
jcupitt/vips) drivers with automaticautofallback (libvips → imagick → gd) - Native encode for JPEG, PNG, WebP, and AVIF
- Geometry operations: resize, crop, fit, fill, scale, rotate, flip
- Color operations: grayscale, brightness, contrast, saturation, sepia, invert
- Effects: blur, sharpen
- Composition: watermark, text overlay, image overlay, padding, border, background
Formats & optimization
- Configurable encoders (quality, metadata stripping, custom CLI argument maps)
- External optimizers:
jpegoptim,oxipng,optipng,pngquant,cwebp,avifenc optimizeTypesetting — defer same-format post-optimizers to the Craft queue (job) or run inline (runtime)- PNG→WebP/AVIF via
cwebp/avifencwith native fallback (never ships PNG renamed as.webp) OptimizeDerivativeJob— reads stored object (local or remote), optimizes, overwrites same path/URL
Storage & delivery
- Local filesystem adapter
- S3-compatible adapter for AWS S3, DigitalOcean Spaces, and Cloudflare R2
- Configurable storage adapters via extension events
- Public URL delivery and signed runtime generation URLs
- Existence markers (
@storage/super-images/markers) for fast remote cache hits without network HEAD requests - Per-asset derivative index for remote cleanup and orphan detection
- Long-lived
Cache-Controlon R2/S3 uploads (public, max-age=31536000, immutable)
Twig & frontend
craft.superImagesvariable API —url,img,picture,srcset,sources,exists,isEnabled- Profile/variant/format resolution from
config/super-images.php - Inline
operationsarrays for ad-hoc transforms generateBeforePageLoad— generate during page request or defer via signed runtime URLs
CLI
super-images/status— resolved config snapshotsuper-images/config— dump effective configuration (optional--assetmanifest sample)super-images/generate— eager or queued generation by asset, volume, profile, variant, formatsuper-images/doctor— PASS/WARN/FAIL diagnostics (human or--json=1)super-images/cleanup— aged, orphaned, per-asset, or full purge (--all=1clears markers + index)
Control Panel
- Dashboard, settings, encoders overview, playground, and diagnostics
- Permission-gated CP section
Auto-generate & policies
- Auto-generate on upload, replace, and focal-point change (inline or queued)
- Volume-level overrides
- Safety policies, fallbacks, and automatic cleanup when assets are deleted or replaced
- Configurable retention for generated and preview artifacts
Extension API
- Register custom drivers, encoders, optimizers, operations, and storage adapters via Yii events
- Runnable reference classes in
examples/— storage adapter, WebP encoder, JPEG optimizer, tint operation, and sample plugin wiring - Generation lifecycle events (
BEFORE_GENERATE,AFTER_GENERATE,BEFORE_ENCODE,AFTER_ENCODE)
Documentation & demo
- Full docs under
docs/— getting started, configuration, Twig, storage, CLI, encoders/optimizers, delivery, policies, extension API - Interactive Twig demo (
demo/) — copy totemplates/super-imagesand visit/super-images - Annotated example config:
config/super-images.example.php
Requirements
- Craft CMS ^5.0
- PHP ^8.2
- At least one image driver: GD, Imagick, or Libvips
- Optional:
aws/aws-sdk-phpfor S3 / Spaces / R2 - Optional: external optimizer binaries on
$PATH