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
Regardless of whether the source image uses the jpg or jpeg extension, the returned object will use the jpeg key.
Here’s how I fixed it in my project:
letextension=path.extname(src).slice(1).toLowerCase();// Normalize “jpg” extension to match what @11ty/eleventy-img doesextension=extension=='jpg' ? 'jpeg' : extension;
The text was updated successfully, but these errors were encountered:
FYI, after updating
@11ty/eleventy-img
to 0.8.0 I was getting this error:eleventy-webpack/utils/shortcodes.js
Line 86 in 2b0242d
After reading through the changes, it turned out to be related to this fix 11ty/eleventy-img#64 (comment).
Regardless of whether the source image uses the
jpg
orjpeg
extension, the returned object will use thejpeg
key.Here’s how I fixed it in my project:
The text was updated successfully, but these errors were encountered: