Quote:
Originally Posted by CJinPHL
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.