Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Ratio Crop

Security covered Maintenance fixes only 1,346 sites

This module adds an image style effect that crops images to a specific aspect ratio without resizing them. Instead of fixed pixel dimensions, you define a ratio, and the excess parts of the image are cropped away to maintain that ratio. This is useful for creating images of varying sizes that share the same proportions.

This module provides an image style effect that crops image to predefined ratio without resizing it. So, instead of setting width and height parameters in pixels as you would for core crop effect, you need to set up an aspect ratio, and the protruding dimension will be cropped, keeping another dimension intact. This way you can get images of different sizes with same aspect ratio (which can be useful, eg, for some zoom gallery).

There are more sophisticated modules such as Image Widget Crop or Focal Point which provide widgets with control over every single image.

Drupal 10–11

Ask your assistant about Ratio Crop

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • image Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jan 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 10–11 Jul 13, 2025
2.x-dev Dev 10–11 Jan 7, 2024
2.0.0 Stable 8–10 Jan 6, 2024