Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8). editoria11y 2.2.22 Minor update available for module editoria11y (2.2.22).

Automatically generate separate media entities for different crop selections defined during the initial image upload.

Introduction:

Crop Media on Upload streamlines the editorial workflow for sites requiring multiple aspect ratios (e.g., Square, Hero, Thumbnail) for a single image asset.

While the use of Image Styles will cover many scenarios, based on a single source image, some projects may require more specific targeting of the cropping/resizing of images and, potentially, multiple different shapes and sizes of an image for different uses.

Traditionally, this would mean using third-party image editing tools first to create the correct size/shape images and then having to upload each one to your Drupal site as its own Media entity.

This module allows users to upload a single original image, define their crop shapes (and, optionally, specific sizes) and then use the ImageCropWidget module to define the different crops on upload. It then automatically handles the creation of independent media entities for each crop/size variation.

Key Features:

  • Automatic Multi-Crop Generation: Creates new, separate media entities for every defined and selected crop type (e.g., Square, 16:9, Portrait) immediately upon upload.
  • Resize on upload: Optionally set fixed sizes for your generated crop versions, including multiple sizes per crop style.

How it Works:

  • Configure: Set which of your image-based Media type(s) you wish to use the functionality on and select which Crop Types (from the Crop API) should be enabled for that bundle.
  • Upload: When a user uploads an image to a configured Media type, they are presented with the selected cropping tools.
  • Process: Upon saving, the module generates a unique, cropped image file for every selection and creates a new Media entity for each, using the original title plus the crop label (e.g., "My Image - Square"). Users can choose whether to also keep the original image or just retain the cropped versions.

Requirements:

Installation & Configuration:

  • Install the module as usual via Composer.
  • Set up your crop types via /admin/config/media/crop
  • Navigate to /admin/config/media/crop-media-on-upload.
  • Select the Media types you wish to enable.
  • Map the image field and select the desired crop styles for each type.
  • (Optional) Set a fixed size/sizes for the crop image to be resized to after cropping.
  • (Optional) Set a global suffix for original images or enable the "Don't keep the original image" setting for specific bundles.

Note for Administrators: This module dynamically manages the form display for configured image fields. While active, manual changes to the widget type for those fields in the "Manage Form Display" tab will be overridden to ensure consistent functionality.

Activity

Total releases
1
First release
Apr 2026
Latest release
21 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Apr 15, 2026