Image Replace allows you to swap out source images based on different image styles, which is helpful for responsive websites needing completely different images for various screen sizes or resolutions, such as graphics with text.
Image Replace provides a way to supply optional alternative source images mapped to image styles. This is useful when building responsive sites with art directed images where cropping and resizing is not enough but images need to be swapped out completely. For example when delivering graphics containing rendered text, e.g. responsive hero images.
This module works well with responsive image modules leveraging image styles, for example the Picture module.
Demo
- Demo on simplytest.me. Make sure to select the Image Replace Demo installation profile. (sandbox source)
Documentation
Maintainers
Ask your assistant about Image Replace
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.