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
  • Loading branch information
ascorbic authored Jan 5, 2021
1 parent 3d100e3 commit 1debff5
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 1debff5

Please sign in to comment.