|
|
#1 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 39902
Join Date: Feb 2026
Device: none
|
Alternative Book Height Calculation in Bookshelf View?
Good Day!
Not sure how the height calculation is done currently, but for variable book height, could we get one based on a formula using the cover image height/aspect ratio in some way? Perhaps as a "based on cover image" Checkbox? Reason being, I would like my series to be the same height in a group, and this way the onus is on us (calibre users) to make sure covers are the same dimensions |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,114
Karma: 29626208
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's based on the book id. Basically a deterministic hash of the book id. As for making it controllable, that could be done, but using cover height is not viable as that would involve reading the cover image enough to get its dimensions during shelf layout calculation, which is too slow. The way to do it is to use a template similar to the width template, but that is rather a lot of work to implement.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 39902
Join Date: Feb 2026
Device: none
|
Hmm, yeah, speed is important; bookshelf view doesn't need to be any slower than it is. How about something along the lines of: when it's in group mode and it gets the group divider info (group name), it sets a group height based on the first-in-the-group calculation. All books in that group will then use that height setting, which only changes when the group name changes or when there's no group info. This should not really impact speed right? Not sure if I explained it clearly or the level of difficulty involved.
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,114
Karma: 29626208
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bookshelf view - rounded book spines | keith47733 | Introduce Yourself | 2 | 02-21-2026 07:43 AM |
| Is there still a bookshelf view? | Panupat | Calibre | 10 | 07-01-2021 08:03 PM |
| Download bulk book details and list in bookshelf view | jjjconnon | Calibre Companion | 5 | 10-22-2016 08:46 PM |
| book view and spacing constuctcts - height x% | cybmole | Sigil | 3 | 11-08-2014 02:34 PM |
| Bookshelf view? | MSWallack | Marvin | 9 | 12-06-2013 07:40 AM |