View Single Post
Old 08-19-2022, 12:08 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by CJinPHL View Post
I don't know much about how Calibre works, but I looked at the file generated by Calibre called titlepage.xhtml. It has an SVG wrapper, but I see it is resizing my file to 563 x 751.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 563 751" preserveAspectRatio="xMidYMid meet">
<image width="563" height="751" xlink:href="cover.jpeg"/>

I'm going to try editing this code in Calibre to see if that will solve it.
That is the expected code for centring the cover image. Calibre will update the metadata and the cover image when the book is sent to the device. But, it doesn't update the cover page if the image is not the same size as the previous one. So, you might have a much bigger image that is being downscaled.

You can fix this easily in the editor. Again, calibre will update the cover image and metadata when you open the editor (there is an option in the editor to turn this off). You can have calibre regenerate this page . Click the "Tools" in the menu and then "Add cover". You will be prompted to choose the image for the cover and there is an option about whether to preserve the aspect ratio of the cover (the above does not). When you click OK, calibre will replace the existing titlepage.xhtml with a new version with sizing for the current cover image.

If you have a lot of these cases, you can use the Polish books tool to update the covers in a batch. Or if you do the conversion after updating the cover in the library, it will use that when building the epub and it should all be correct.
davidfor is offline   Reply With Quote