Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module prebuilds image style derivatives in bulk for remote embeds, headless frontends, and CDNs, and helps diagnose issues with image styles and files. It allows you to target specific image fields and offers batch processing with a dry run mode to preview changes safely.

Bulk Image Regeneration prebuilds image style derivatives in bulk so they’re ready for remote embeds, headless frontends, and CDNs, and helps diagnose issues after migrations or style changes.

Features

  • Prebuild derivatives: Ensures images are available when Drupal’s on‑demand generation isn’t triggered (remote JS embeds, headless, CDN warmups).
  • Targeted by field: Regenerate only images referenced by selected image fields (entity.bundle.field_name); avoids scanning entire filesystems.
  • Batch processing with dry run: Adjustable batch size and a dry‑run mode to preview work safely.
  • Smart diagnostics: Summaries for missing entities, missing file entities, temporary files, orphaned files, and total references vs usable images.
  • Style awareness: Skips image styles without effects; uses Drupal’s ImageStyle derivative API.
  • Admin‑only: Access via a restricted permission and admin route.

Post-Installation

After enabling the module and granting the administer bulk image regeneration permission, go to:

  • Config → Media → Bulk Image Regeneration (/admin/config/media/bulk-image-regeneration)

Then:

  1. Select one or more Image styles (only styles with effects are processed).
  2. Select Content fields to target (entity.bundle.field_name).
  3. Set Batch size and enable Dry run to preview.
  4. Review Handle Orphaned Files (documented; currently behaves as “Skip”).
  5. Run the batch and review messages/logs (channel: bulk_image_regeneration).

Notes: Only permanent file entities are processed. Derivatives use your current image toolkit and style effects. For large datasets, run smaller field/style passes during low traffic.

Additional Requirements

  • Core modules: file, image
  • Access to site file schemes (typically public://, optionally private://)
  • No external libraries required
  • ImageAPI Optimize (and preferred optimizers like reSmush.it) to improve quality/size of regenerated derivatives.
  • A CDN or edge cache if pre‑warming for performance.

Similar projects

Other tools can flush or rebuild image styles globally or per entity. This module is differentiated by:

  • Field‑targeted selection (entity.bundle.field_name) to limit scope.
  • Operator diagnostics (missing/temporary/orphaned) and progress feedback.
  • Simple admin UI aligned with Drupal Batch and ImageStyle APIs.

Activity

Total releases
1
First release
Nov 2025
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.x-dev Dev Nov 11, 2025