image_404_fallback
9 sites
No security coverage
The Image 404 Fallback module intercepts requests for missing image files and serves a configurable fallback image instead of returning a 404 error. This ensures that broken image links display a fallback rather than a broken image icon, maintaining a cleaner appearance on your site.
Features
- Automatically detects 404 image requests
- Serves a configurable fallback image
- Supports multiple image formats (JPG, PNG, GIF, WebP, SVG, BMP, ICO, AVIF)
- Includes a default fallback image (SVG)
- Configurable fallback path via admin interface
- Proper HTTP headers and caching
Post-Installation
- Navigate to Configuration > Media > Image 404 Fallback Settings (`/admin/config/media/image-404-fallback`)
- Optionally specify a custom fallback image path:
- Enter an absolute path (e.g., `/var/www/html/placeholders/my-fallback.png`)
- Or a path relative to the Drupal root (e.g., `sites/default/files/fallback.png`)
- If left empty, the module will use its default fallback image located at `images/placeholder.svg`