-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix adding support for AVIF through the image crate
This is a bit of a hack, since we depend on the ImageOutputFormat which did not yet have an Avif entry for image crate v0.23.10. This has been contributed, but it is not released yet. Thus we have to call the encoder separately, which would require quite a bit of refactoring for a simple change (or we could wait I suppose), which would then revert the refactoring. For now however, I decided to add support, but use a environment variable to signal that the ImageOutputFormat is actually not Farb when the id "avif" is found, but Avif instead. Obviously this should be fixed when image crate `>v0.23.10` will be released.
- Loading branch information
1 parent
f6a28f3
commit ab8ebf6
Showing
4 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters