Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Image Utilities

Security covered Under active development 21 sites

Image Utilities enhances Drupal core's image functionality for developers. It provides tools to easily generate image URLs based on image styles, directly within Twig templates or custom code, and adds convenient methods for accessing image alt text and titles from image field items.

Image Utilities provides developer-oriented improvements to the core image module.

Features

  • Add image_style Twig filter. It takes field items, media or file entities and gives you an image url based on the
    image style ID you pass as an argument.
  • Add ImageManager service that can be used to easily generate image urls in code.
  • Add getFile, getAlt and getTitle methods to the image field item class for use in custom code or Twig templates.

Contributing

  • Tests are encouraged. This project doesn't have any test coverage yet, but contributions are welcome.
  • Keep the documentation up to date. Make sure README.md and other relevant documentation is kept up to date with your changes.
  • One pull request per feature. Try to keep your changes focused on solving a single problem. This will make it easier for us to review the change and easier for you to make sure you have updated the necessary tests and documentation.
Drupal 9–11

Ask your assistant about Image Utilities

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
2
Tracked since
Nov 2024
Latest release
10 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core PHP Release date
1.1.6 Stable 9–11 Dec 5, 2025
1.1.5 Stable 9–11 Nov 21, 2024