Responsive Image Field Formatter

Categories

Component ID

1854442

Component name

Responsive Image Field Formatter

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Provides a field formatter for image fields that allows configuration of specific image styles (or none) to apply to images at specific breakpoints, and renders field in such a way that only the appropriate styled image will load for the active breakpoint, or no image will load at all if a style is not selected for the current/active breakpoint.

Relies on Enquire.js, and dynamically sets image source attribute with javascript when a data attribute is present for the current/active breakpoint.

I currently no plan of ever promoting this to a full project

Note: This is a Proof of Concept. It is stable enough for production use, but bugs will not be addressed without patches except possibly in cases that affect my personal use of the code.