Description
Some content servers (Komga, Kavita, Codex, LANraragi,...) that support OPDS 1.2 can provide images for the different publication containers (folders, series, collections, arcs, ...).
These containers are represented as OPDS navigations. But they don't support thumbnails or images. This is mostly fine when the client shows a list if navigation links. But when the representation is more visual, clients are forced to use generic folder images or similar approaches.
It would be great if Navigation would support an optional Images structure that clients can use to render nicer navigations.
I'm pretty sure the idea is clear, but I'm attaching an example of how the JSON would look with a navigation item supporting images, and another one not doing so.
{
"metadata":
{
"title": "Example for navigation"
},
"links":
[
{
"rel": "self",
"href": "http://example.com/opds",
"type": "application/opds+json"
}
],
"navigation":
[
{
"href": "/new",
"title": "New Publications",
"type": "application/opds+json",
"rel": "current"
},
{
"href": "/popular",
"title": "Popular Publications",
"type": "application/opds+json",
"rel": "http://opds-spec.org/sort/popular",
"images":
[
{
"href": "http://example.org/cover.jpg",
"type": "image/jpeg",
"height": 1400,
"width": 800
},
{
"href": "http://example.org/cover-small.jpg",
"type": "image/jpeg",
"height": 700,
"width": 400
},
{
"href": "http://example.org/cover.svg",
"type": "image/svg+xml"
}
]
}
]
}