Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2023, 02:55 AM   #1
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
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.
Lukusaukko is offline   Reply With Quote
Old 03-03-2023, 03:19 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,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
kovidgoyal is offline   Reply With Quote
Advert
Old 03-03-2023, 03:31 AM   #3
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
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.
Lukusaukko is offline   Reply With Quote
Old 03-03-2023, 04:15 AM   #4
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,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.
kovidgoyal is offline   Reply With Quote
Old 03-03-2023, 05:31 AM   #5
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 55
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
The value used by Polish books is customizable via Preferences->Output options->EPUB output->Preserve cover aspect ratio.
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).
Lukusaukko is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:05 AM.


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