Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 12-09-2025, 11:42 PM   #1
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 24
Karma: 62
Join Date: Dec 2024
Location: PNW, US
Device: kobo
content server OPDS thumbnail size?

Is there a way to change the thumbnail size for the content server, in particular when serving over OPDS?

I see that the size is being set in `src/calibre/srv/content.py`, but if I'm reading it right (and I could totally be missing something) it looks like `sz` is only ever assigned a value if you're working with docx. Otherwise, it always comes back as `None`, fails the `rest` check, and is set to the (imo horrifically) small 60x80. I know I can hand edit that and rebuild a local copy...then keep it maintained in perpetuity. Is there a way I'm missing? I hoped the "thumbnail size" for custom lists would override it, but it doesn't appear to impact display in opds at all.

Thanks!
kodermike is offline   Reply With Quote
Old 12-10-2025, 12:10 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,716
Karma: 28549306
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You would need to change it in opds.py near the end of ACQUISITION_ENTRY specify a thumbnail size when generating the /get href
kovidgoyal is offline   Reply With Quote
Old 12-10-2025, 12:20 AM   #3
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 24
Karma: 62
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Quote:
Originally Posted by kovidgoyal View Post
You would need to change it in opds.py near the end of ACQUISITION_ENTRY specify a thumbnail size when generating the /get href
Thanks! I’ll play with that and see if I can’t get a pr together to make it more configurable. Appreciate the quick response!
kodermike is offline   Reply With Quote
Old 12-10-2025, 10:05 PM   #4
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 24
Karma: 62
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Quote:
Originally Posted by kodermike View Post
Thanks! I’ll play with that and see if I can’t get a pr together to make it more configurable. Appreciate the quick response!
Just for closure - ironically it was easier to fix the client I was using in koreader to prefer cover vs thumbnail than to try and force a fix in calibre. Might be nice later to be able to set the height of thumbnails - some day.
kodermike is offline   Reply With Quote
Reply

Tags
content server, opds, thumbnail size


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Koreader - Integration Calibre Content Server & OPDS lethalox KOReader 0 08-11-2025 11:16 PM
Calibre Web opds access failing as content server rmzg Calibre Companion 8 07-23-2018 01:49 AM
Help with downloading ebooks into Marvin using Calibre content server vs OPDS deadman36g Calibre 3 12-09-2016 04:20 PM
OPDS Content Server to provide last modification date cedhax Related Tools 9 09-13-2016 08:11 AM
Size limit in content server downloads? PepeM Calibre 16 07-25-2011 01:11 PM


All times are GMT -4. The time now is 09:21 AM.


MobileRead.com is a privately owned, operated and funded community.