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 acfe18a commit b938cfeCopy full SHA for b938cfe
src/ImageRequest.js
@@ -55,9 +55,9 @@ class ImageRequest {
55
if (specialOutputFormats.includes('avif')) {
56
return 'avif'
57
}
58
- // If avif isn't available, use webm
59
- if (specialOutputFormats.includes('webm')) {
60
- return 'webm'
+ // If avif isn't available, try to use webp
+ if (specialOutputFormats.includes('webp')) {
+ return 'webp'
61
62
// Coerce pngs and tiffs without alpha channels to jpg
63
if (!this.originalMetadata.hasAlpha && (['png', 'tiff'].contains(this.originalMetadata.format))) {
0 commit comments