Skip to content

Commit

Permalink
fix: use the .avif file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Jan 12, 2022
1 parent 7db1e03 commit 5c35a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function formatFor (image: Image): ImageFormat {
console.error('Could not infer image format for', image)
throw new Error('Could not infer image format')
}
if (format === 'heif') return 'avif'
return format
}

Expand Down

0 comments on commit 5c35a2e

Please sign in to comment.