Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed requirements for images in OPDS 2.0 #80

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opds-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Publications <em class="rfc">must</em> either be:
- a [Readium Web Publication](https://github.com/readium/webpub-manifest) with no restrictions in terms of access (no payment, no credentials required, no limitations whatsoever)
- or an [OPDS Publication](#41-opds-publication)

Each publication listed in an OPDS feed <em class="rfc">must</em> contain an `images` collection.
Each publication listed in an OPDS feed <em class="rfc">should</em> contain an `images` collection.

**Example**

Expand Down Expand Up @@ -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**

Expand Down
6 changes: 3 additions & 3 deletions schema/publication.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -76,7 +77,6 @@
},
"required": [
"metadata",
"links",
"images"
"links"
]
}