![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
Embed metadata: preserve aspect ratio on covers
I've been using Calibre for ages, but until I just recently got my first real e-reader and started seeing the stretched covers, I haven't noticed this: if I use Embed Metadata from the library view, it sets a cover without preserving the aspect ratio, and I have to reset the cover in editor so I can enable it.
Is it possible to configure this somewhere? The plugin configuration only allows the option to disable embedding the cover for books that don't already have one, as far as I can tell. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
embedding metadata does not touch the HTML used to display covers. It only sets the actual cover image, so there is no aspect ratio to preserve or not. If you want replacement, use the Polish books tool instead, which IIRC changes both the actual image and its wrapper HTML
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
I tested this with a PG book, and looks like Polish Books tool does add preserveAspectRatio inside the SVG tag, but sets the value to "none", and there are no configuration options to change this behaviour. Oh well, I just have to remember to do it by hand when I edit the books for reading - I hardly ever read anything without customizing it first in any case.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The value used by Polish books is customizable via Preferences->Output options->EPUB output->Preserve cover aspect ratio.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
Great! Thank you - I was looking for configuration options in the Plugin manager. I think I've noticed the option in that place before, but didn't connect it with Polish Books, thinking it was only for conversion settings (which Polish Books actually does, now that I think of it - it converts EPUB into polished EPUB).
|
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preserve Cover aspect ratio | nqk | Editor | 2 | 08-21-2022 08:37 AM |
Preserve aspect ratio for images in Calibre | Symm1 | Calibre | 3 | 12-22-2021 12:49 AM |
Aspect Ratio: to preserve or not to preserve, that is the question | RadicalxEdward | General Discussions | 3 | 04-12-2015 09:45 PM |
DOCX conversion of images to EPUB/Mobi: preserve aspect ratio? | tbrosz | Conversion | 3 | 03-31-2014 01:56 PM |
Aspect Ratio for Covers? | Buddy13 | Kobo Reader | 10 | 10-21-2011 07:45 AM |