Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Image Sizes

Security covered Under active development 77 sites

This module enhances responsive image styles by considering the parent element's width, which can improve Google PageSpeed rankings. It provides an image formatter for fields and allows for the creation of image presets using Drush commands.

Responsive image styles depend on the parent element width.

Blow up your google page speed rank.

Installation 3.x

Install as usual.

How to use

- You can enable image sizes default module for some standards.
- A image formatter for fields is provided
- Use drush command for create a preset

Recommended modules

Image sizes works great with one of the following modules:
* https://www.drupal.org/project/focal_point
* https://www.drupal.org/project/image_widget_crop

Example drush commands

# Generate a preset with name default without ratio
drush isg "Default" 100 1400 100

# Add a blurred placeholder. Needs image_effects module.
drush isg "Default" 100 1400 100 --generate-thumbnail

# Generate style with 4x3 ratio
drush isg "Default" 100 1400 100 --ratio=4x3 

# Generate style with 4x3 ratio with focal point. Works only with ratio option.
drush isg "Default" 100 1400 100 --ratio=4x3 --use-focal-point

# Generate style with 4x3 ratio with image_widget_crop. Works only with ratio option.
drush isg "Default" 100 1400 100 --ratio=4x3 --use-manual-crop

# Convert to png file. Default is webp.
drush isg "Default" 100 1400 100 --format=png

Drupal 9–11

Ask your assistant about Image Sizes

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
12
Tracked since
Feb 2023
Latest release
1 month ago
Releases (12 mo)
1 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
5.x-dev Dev 11 Aug 22, 2026
4.0.0-rc6 Pre-release 10–11 Mar 28, 2025
4.0.0-rc5 Pre-release 10–11 Mar 14, 2025
4.0.0-rc4 Pre-release 10–11 Mar 14, 2025
4.0.0-rc3 Pre-release 10–11 Oct 21, 2024
4.0.0-rc2 Pre-release 10–11 Oct 2, 2024
4.0.0-rc1 Pre-release 10–11 Oct 1, 2024
4.x-dev Dev 10–11 Sep 27, 2024
3.1.x-dev Dev 9–11 Sep 20, 2024
3.0.3 Stable 9–11 Sep 1, 2024