Skip to content

Commit ecebdd3

Browse files
GatsbyJS Botascorbic
andauthored
fix(gatsby-plugin-sharp): Add avif to pipeline (#28871) (#28876)
(cherry picked from commit 1debff5) Co-authored-by: Matt Kane <[email protected]>
1 parent 3f854ba commit ecebdd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/gatsby-plugin-sharp/src/process-file.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ exports.processFile = (file, transforms, options = {}) => {
123123
quality: transformArgs.quality,
124124
force: transformArgs.toFormat === `tiff`,
125125
})
126+
.avif({
127+
quality: transformArgs.quality,
128+
force: transformArgs.toFormat === `avif`,
129+
})
126130

127131
// jpeg
128132
if (!options.useMozJpeg) {

0 commit comments

Comments
 (0)