Skip to content

Commit

Permalink
Adds AVIF to the list of supported image formats
Browse files Browse the repository at this point in the history
AVIF is now supported across all major platforms and has the best size/quality ratio
HadrienGardeur committed Apr 17, 2024
1 parent 8580393 commit 4d68672
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opds-2.0.md
Original file line number Diff line number Diff line change
@@ -174,7 +174,7 @@ This new collection role is mostly meant to support responsive images across all

Link Objects in `images` <em class="rfc">may</em> include any number of image format, resolution or aspect ratio.

At least one image resource <em class="rfc">must</em> use one of the following formats: `image/jpeg`, `image/png` or `image/gif`.
At least one image resource <em class="rfc">must</em> use one of the following formats: `image/jpeg`, `image/avif`, `image/png` or `image/gif`.

**Example**

3 changes: 2 additions & 1 deletion schema/publication.schema.json
Original file line number Diff line number Diff line change
@@ -58,12 +58,13 @@
"minItems": 1,
"allOf": [
{
"description": "At least one image resource must use one of the following formats: image/jpeg, image/png or image/gif.",
"description": "At least one image resource must use one of the following formats: image/jpeg, image/avif, image/png or image/gif.",
"contains": {
"properties": {
"type": {
"enum": [
"image/jpeg",
"image/avif",
"image/png",
"image/gif"
]

0 comments on commit 4d68672

Please sign in to comment.