We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d207de commit a68663eCopy full SHA for a68663e
index.js
@@ -76,6 +76,9 @@ export default function sharpOptimizeImages(options) {
76
}
77
78
async function convert(file, newFileFormat, options) {
79
+ if (newFileFormat == 'heif')
80
+ options.compression = 'av1'
81
+
82
let sharpInstance =
83
sharp(file.contents, DEFAULT_SHARP_OPTIONS)
84
.toFormat(newFileFormat, Object.assign(DEFAULT_CONVERSION_OPTIONS, options))
0 commit comments