Prerelease: Eleventy Image v6.0.0-beta.1
Pre-release
Pre-release
returnType: "html"
option will return the generated HTML directly instead of the metadata object #267htmlOptions: {}
are options passed to thegenerateHTML
function
- Output format filtering (opt-out with
formatFiltering
option). Filters out formats that do not support animation or transparency automatically. - Adds
errorOnFail: true
option to avoid throwing an error when image processing fails (and failing your build) #225 See also theeleventy:optional
attribute below. - Keep ICC profiles by default to retain all the colors of Display-P3 and AdobeRGB images #244
- Adds new
transform
hook for running your ownsharp
customizations #52 (comment) (can be used to add custom cropping!) - Improved error messaging when incorrectly using the default export with
eleventyConfig.addPlugin
#263 - Concurrency autoscales per machine resources (between
8
min and16
max) #258 - Upgrade
eleventy-fetch
dependency to use platform nativefetch
and work better with caching on remote urls, consistency on file names with sync methods #252 #262 #146 - Support full URLs in
urlPath
option #239
generateHTML
- Missing
sizes
error relaxed when usingloading="lazy"
HTML, swap to usesizes="auto"
instead #207 - New
generateHTML
option (also available viahtmlOptions
) forfallback: "smallest"
to choose smallest image for<img>
fallback andwidth
/height
dimensions #265 #129
Transform Method
- Adds
eleventy:optional
HTML attribute so that errors in image processing will not fail the build (in different ways) #259- Remove
src
attribute - Leave as-is
- Replace with a transparent Data URI
- Remove
- Decode file name paths #253
- Support
<picture>
transformations #214 - Preserve attributes on
img
andpicture
elements #214 (comment) #241 #243 #251 - Reuse existing
<img width>
attribute (if single integer) aseleventy:widths
value #234 - Fix inconsistent
<picture>
usage when formats were filtered #242 - Fix for relative references when using permalinks with non-index.html file names #236
Full Milestone: https://github.com/11ty/eleventy-img/milestone/22?closed=1
Full Changelog: v5.0.0...v6.0.0-beta.1
Fast-follow v6.0.0-beta.2 already released: https://github.com/11ty/eleventy-img/releases/tag/v6.0.0-beta.2