gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support
https://komga.org
MIT License
4.07k stars 241 forks source link

[Feature Request] Ability to set larger size for OPDS Thumbnails #1215

Closed howdy-im-david closed 1 year ago

howdy-im-david commented 1 year ago

Describe your suggested feature

Viewing comic covers in OPDS clients right now on high-resolution screens (i.e., iPad), is not a great experience as they're very blurry. Viewing the XML feed

<link type="image/jpeg" rel="http://opds-spec.org/image/thumbnail" href="/opds/v1.2/books/{bookId}/thumbnail/small"/>

the image size is 196x300 which is way too small.

I would like to be able to define the thumbnail resize from based on % (100%-Original page size to whatever % size they're being resized to now.) This will allow the server owner to set a quality size appropriate for their environment and/or needs.

Other details

No response

Acknowledgements

howdy-im-david commented 1 year ago

Additionally, I see an open PR https://github.com/gotson/komga/pull/1031 that may alleviate the problem, but looks like there's been no movement on it for almost 8mo.

gotson commented 1 year ago

Thumbnails are precomputed and stored. Increasing the size will increase the storage space and the data transfer size.

Duplicate of #861

RickSWilliams commented 1 year ago

I know this just got closed, but I would really like this ability too. Even if buried in a config file. I’d be fine with the increased size.

gotson commented 1 year ago

I know this just got closed, but I would really like this ability too. Even if buried in a config file. I’d be fine with the increased size.

Follow #861 it's the same thing

gotson commented 1 year ago

Viewing comic covers in OPDS clients right now on high-resolution screens (i.e., iPad), is not a great experience as they're very blurry. Viewing the XML feed

<link type="image/jpeg" rel="http://opds-spec.org/image/thumbnail" href="/opds/v1.2/books/{bookId}/thumbnail/small"/>

the image size is 196x300 which is way too small.

There's 2 links, 1 for the small thumbnail, and 1 for the full size thumbnail.

If your opds client displays the small one in full screen, it's a client issue.

https://specs.opds.io/opds-1.2#522-artwork-relations

TheHardew commented 1 year ago

@howdy-im-david I've updated the PR. You can build it yourself.