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
It's really neat how the eleventyImageTransformPlugin will automatically enhance img tags.
If an img tag already has a width attribute set, it would be helpful if the plugin used that value instead of requiring users to rename the attribute to eleventy:widths.
Example:
<img src="foo.jpg" width="600"> will return the full sized image. The transform plugin silently drops the width parameter. This is confusing and perhaps not what people expect (at least not what I expect).
<img src="foo.jpg" eleventy:widths="600"> fixes it.
The text was updated successfully, but these errors were encountered:
It's really neat how the
eleventyImageTransformPlugin
will automatically enhance img tags.If an img tag already has a
width
attribute set, it would be helpful if the plugin used that value instead of requiring users to rename the attribute toeleventy:widths
.Example:
<img src="foo.jpg" width="600">
will return the full sized image. The transform plugin silently drops the width parameter. This is confusing and perhaps not what people expect (at least not what I expect).<img src="foo.jpg" eleventy:widths="600">
fixes it.The text was updated successfully, but these errors were encountered: