Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
andgetTitle
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.
Supporting organizations:
Development time
Project information
- Module categories: Developer Tools, Media
- 16 sites report using this module
- Created by DieterHolvoet on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.