You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some CMS components require srcsets to be output as a custom attribute for other files or scripts.
For example, the Cornerstone theme for the BigCommerce CMS uses a data-image-gallery-new-image-srcset attribute to swap out the srcset of the main image in a product display page:
Describe the solution you'd like
A way to pass an imgix.js generated srcset to a custom HTML attribute.
Is your feature request related to a problem? Please describe.
Some CMS components require srcsets to be output as a custom attribute for other files or scripts.
For example, the Cornerstone theme for the BigCommerce CMS uses a
data-image-gallery-new-image-srcset
attribute to swap out thesrcset
of the main image in a product display page:Describe the solution you'd like
A way to pass an imgix.js generated
srcset
to a custom HTML attribute.An example solution:
imgix.config.customSrcsetAttribute = 'data-image-gallery-new-image-srcset';
srcset
could then be generated with<img data-image-gallery-new-image-srcset="http://bryansandbox.imgix.net/_static/images/img02.jpg"/>
The text was updated successfully, but these errors were encountered: