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
3.0.2 Stable 9–10 May 29, 2024
3.0.1 Stable 9–10 Feb 21, 2023