gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API and OPDS support
https://komga.org
MIT License
3.79k stars 223 forks source link

Config for OPDS prefetching #1098

Closed rage1337 closed 1 year ago

rage1337 commented 1 year ago

Describe your suggested feature

I'm monstly reading via Panels / OPDS Stream.

My library solely consist of WebP CBZ - everything I add runs through a parser before being added. Sometimes, mostly when skipping through bigger books, I need to wait for the pages to be preloaded. This means, that Panels shows me a placeholder image while buffering the real image. The logs show me, that every image is converted to jpeg, done in org.gotson.komga.domain.service.BookLifecycle. Ok so far if necessary. If I could increase the count of prefetched pages via a config, I would be able to reduce the waiting times.

Other details

No response

Acknowledgements

gotson commented 1 year ago

every image is converted to jpeg

This is a requirement of OPDS-PSE, see here:

type MUST indicate the type of image returned by the server (value MUST be one of the following : image/jpeg, image/gif or image/png)

That means webp is not supported, and thus need to be converted.

If I could increase the count of prefetched pages via a config, I would be able to reduce the waiting times.

This is a client side configuration, not server side. You need to request this to Panels directly.