This module allows you to add custom CSS classes to images displayed through Drupal's image field formatter. This is useful for styling images with utility classes for layout purposes. Additionally, it can optionally prevent the output of the alt attribute for decorative images and add focal point data to data attributes for frontend use.
This module adds a field formatter for Image field types, to allow classes to be added to the image via the field formatter configuration.
Useful for utility based styling where images require additional classes for layout.
Optionally this formatter can also be used to:
- Prevent alt attribute output for use with decorative images
- Add focal point data to data attributes for use on the front-end
Ask your assistant about Responsive Image Class
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
- responsive_image Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.