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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). 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 provides a simple image cropping field that allows editors to easily crop and resize images with a fixed aspect ratio and specified dimensions. It automatically generates optimized images and works on any content entity.

This module is ideal when you want reliable, consistent image cropping with minimal configuration and no unnecessary overhead.

Features

Simple Crop provides a new field type that allows editors to crop images using a fixed ratio, resize them to a specified final dimension, and automatically generate optimized images.

  • Works on any content entity (nodes, products, etc.)
  • Uses a clean, mobile-friendly JavaScript cropper widget
  • Configurable "Fixed" aspect ratio ensures layout consistency
  • Automatically generates final resized images to public://simple_crop/
  • No reliance on Crop API or focal point modules
  • Custom output dimensions per field instance
  • Stores crop coordinates and processed image reference with the field

Post-Installation

After installing the module:

  1. Go to Manage fields for your content type, and add a new field of type Simple Crop.
  2. Configure the aspect ratio and final image size (e.g., 4:3, 390x280 pixels).
  3. On content edit forms, users will be able to upload an image and visually select a crop region that fits the configured ratio.
  4. On save, the image is cropped and resized automatically. The resulting image is saved and displayed in place of the original.

Additional Requirements

  • Hook Event Dispatcher module (required for handling entity save events)
  • GD library or ImageMagick enabled on the PHP server (for image processing)

Similar projects

  • Image Widget Crop — more complex and relies on Crop API. Good for reusable crops or multiple crops per image, but heavier and less beginner-friendly.
  • Focal Point — allows selecting the image's focus rather than cropping. Useful for art direction but doesn't enforce aspect ratios or output dimensions.

Simple Crop is different because it:

  • Has no extra entity types or configuration UI
  • Stores crop and processed image per field instance
  • Prioritizes simplicity, visual feedback, and consistent output

Supporting this Module

If you'd like to support development of this module, feel free to reach out to Joseph Olstad or contribute on the issue queue.

Community Documentation

Activity

Total releases
2
First release
Aug 2025
Latest release
11 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.x-dev Dev Aug 9, 2025
1.x-dev Dev Aug 9, 2025