Skip to content

Commit

Permalink
fix(gatsby-plugin-sharp): Add avif to pipeline (#28871)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1debff5)
  • Loading branch information
ascorbic authored and vladar committed Jan 5, 2021
1 parent afac774 commit 2ace891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/gatsby-plugin-sharp/src/process-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ exports.processFile = (file, transforms, options = {}) => {
quality: transformArgs.quality,
force: transformArgs.toFormat === `tiff`,
})
.avif({
quality: transformArgs.quality,
force: transformArgs.toFormat === `avif`,
})

// jpeg
if (!options.useMozJpeg) {
Expand Down

0 comments on commit 2ace891

Please sign in to comment.