Skip to content

Commit

Permalink
IMP: re enable avif after fix from eleventy-img#91
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimLink committed Aug 19, 2021
1 parent 4a975b3 commit cb729b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/_config/shortcodes/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ module.exports = async function imageShortcode(
break;
}

// TODD: add avif support back when pixi box encoding is fixed
// https://github.com/11ty/eleventy-img/issues/91
let metadata = await Image(src, {
widths: [imgSizes],
formats:
originalFormat === "svg"
? [originalFormat]
: ["webp", originalFormat],
: ["avif", "webp", originalFormat],
urlPath: "/images/gen",
outputDir: `${output}/images/gen`,
duration: "1d",
Expand Down

0 comments on commit cb729b5

Please sign in to comment.