From 8580393ccb3bb4cab49be95e28568696642b7689 Mon Sep 17 00:00:00 2001 From: Hadrien Gardeur Date: Wed, 17 Apr 2024 15:33:14 +0200 Subject: [PATCH 1/2] Changed requirement for images in OPDS 2.0 Lowered the requirement for images in publication to a SHOULD Dropped requirement from the JSON Schema --- opds-2.0.md | 2 +- schema/publication.schema.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/opds-2.0.md b/opds-2.0.md index a18a1b0..513d2ed 100644 --- a/opds-2.0.md +++ b/opds-2.0.md @@ -128,7 +128,7 @@ Publications must 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 must contain an `images` collection. +Each publication listed in an OPDS feed should contain an `images` collection. **Example** diff --git a/schema/publication.schema.json b/schema/publication.schema.json index 35aa57b..3d57266 100644 --- a/schema/publication.schema.json +++ b/schema/publication.schema.json @@ -76,7 +76,6 @@ }, "required": [ "metadata", - "links", - "images" + "links" ] } From 4d6867283b95051f79dabe93311bd41d167e956a Mon Sep 17 00:00:00 2001 From: Hadrien Gardeur Date: Wed, 17 Apr 2024 16:29:31 +0200 Subject: [PATCH 2/2] Adds AVIF to the list of supported image formats AVIF is now supported across all major platforms and has the best size/quality ratio --- opds-2.0.md | 2 +- schema/publication.schema.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/opds-2.0.md b/opds-2.0.md index 513d2ed..1bf77dd 100644 --- a/opds-2.0.md +++ b/opds-2.0.md @@ -174,7 +174,7 @@ This new collection role is mostly meant to support responsive images across all Link Objects in `images` may include any number of image format, resolution or aspect ratio. -At least one image resource must use one of the following formats: `image/jpeg`, `image/png` or `image/gif`. +At least one image resource must use one of the following formats: `image/jpeg`, `image/avif`, `image/png` or `image/gif`. **Example** diff --git a/schema/publication.schema.json b/schema/publication.schema.json index 3d57266..e3f50bc 100644 --- a/schema/publication.schema.json +++ b/schema/publication.schema.json @@ -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" ]