Skip to content

Commit b938cfe

Browse files
committed
Fix webm typo
1 parent acfe18a commit b938cfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ImageRequest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class ImageRequest {
5555
if (specialOutputFormats.includes('avif')) {
5656
return 'avif'
5757
}
58-
// If avif isn't available, use webm
59-
if (specialOutputFormats.includes('webm')) {
60-
return 'webm'
58+
// If avif isn't available, try to use webp
59+
if (specialOutputFormats.includes('webp')) {
60+
return 'webp'
6161
}
6262
// Coerce pngs and tiffs without alpha channels to jpg
6363
if (!this.originalMetadata.hasAlpha && (['png', 'tiff'].contains(this.originalMetadata.format))) {

0 commit comments

Comments
 (0)