|
|
Thread Tools | Search this Thread |
12-27-2023, 07:29 PM | #1 |
Member
Posts: 10
Karma: 10
Join Date: Dec 2023
Device: none
|
How do I center the cover photos of my ePub files and make them fit the entire page?
Many of my eBooks have cover photos that appear too large, too small (thumbnail), and/or are not positioned at the center of the page. How do I fix that ? I often change the covers of my eBooks when they are too low-res for my liking. And what happens frequently is that when I add the new cover, it appears as a thumbnail when I open it in Adobe Digital Editions. On the flip side, by default a lot of the covers of my eBooks are high-res, but do not fit the page. And lastly, regardless of size a lot covers appear on the left or the right, instead of the center which is what I want. A perfect cover page for me looks like this: 1. It is placed at the center 2. It fits the entire page How do I achieve that in Calibre? Thank you. PS: Just want to let everyone know that I know nothing about coding. I'm a total newbie to it, and frankly find it very intimidating, so please explain to me like I'm 5 if instructing require coding. |
12-27-2023, 10:02 PM | #2 |
Bibliophagist
Posts: 41,301
Karma: 158182188
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Try wrapping your cover image in a svg wrapper. The ModifyEpub plugin for calibre uses the following code:
Code:
<style type="text/css" title="override_css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> </head> <body> <div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1125 1500" preserveAspectRatio="xMidYMid meet"> <image width="1125" height="1500" xlink:href="images/cover.jpeg"/> </svg> </div> |
12-27-2023, 10:32 PM | #3 |
Wizard
Posts: 1,403
Karma: 7000000
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Or you can use the Tools>Add Cover option which will create the cover page and add the code.
|
12-28-2023, 09:03 AM | #4 | |
Zealot
Posts: 149
Karma: 1451628
Join Date: Jul 2021
Device: N/A
|
Quote:
To be noted : adding a cover automatically removes the old one, so this is a very practical way to have the cover fitting in the page. @ CrankyLamb : Be aware that in the menu tools, there is also a very handy tool : "Compress images lossless" (lossly is also possible), that can reduce notably the size of the jpgs (if you choose to compress lossly). Last edited by lomkiri; 12-28-2023 at 09:19 AM. |
|
12-28-2023, 11:51 AM | #5 | |
Member
Posts: 10
Karma: 10
Join Date: Dec 2023
Device: none
|
Quote:
All that being said, I am aware of the Tools>Add Cover option to create the cover page and automatically add the code, as @Karrellen suggested. I've used it for years, but it doesn't always work. Moreover, I want to point to @DNSB that using the Tools>Add Cover option, automatically adds the SVG wrapper, which I haven't the remotest idea what it's for, but I consistently see it in the code. TEMPORARY (?) SOLUTION FOUND: I may have found an easy temporary solution which seems to work, but I have no idea how, why, or for how long. When I started searching for solutions to this problem, I incidentally came across this thread, which suggests that some later versions of Adobe Digital Editions (ADE) have a bug that causes it to mishandle SVG wrappers. I don't know exactly what that means, but I understand it to mean that it's the reason why my covers don't appear the way that I want them to (centered, filling the page, by preserving the aspect ratio). In that thread discussion, someone suggested replacing the height and width % with vh and vw respectively. Specifically, that means replacing: width=100% with width=100vw and height=100% with height=100vh. The only thing that changes is the "%" character being replaced by "vh" and "vw". I don't know what those mean, but it seems to work. I just hope I don't run into problems later. I manage my entire eBook library in Calibre, but ADE is my default ePub reader on my desktop. The reason for that is it allows me to verify if my eBooks are formatted the way I want them to, and specifically in this case, if the cover appears how I want it to. I'm on the latest version of ADE, v. 4.5.12, which was released in April of this year. I always update when there is a new release, and it's possible that in the future, my covers won't appear correctly because of the temporary solution I took. I hope that doesn't happen because I have thousands of eBooks and having to manually change the code twice would be very frustrating. If you guys have other suggestions or additional commentary, I'm all ears. THANKS AGAIN! |
|
12-28-2023, 12:22 PM | #6 |
Resident Curmudgeon
Posts: 76,963
Karma: 138588794
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What are you going to be using to read your ePub?
|
12-28-2023, 12:53 PM | #7 |
Reading till the spring
Posts: 12,527
Karma: 94058919
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Or if publishing, what will most people read on?
|
12-28-2023, 01:36 PM | #8 |
Member
Posts: 10
Karma: 10
Join Date: Dec 2023
Device: none
|
My default ePub reader used to be my iPad, where I used Apple Books, but since it was stolen, I've been reading on my Android phone. I use Google Play Books. I do intend to purchase an iPad again in the near future though.
|
12-28-2023, 01:47 PM | #9 | |
Connoisseur
Posts: 67
Karma: 10
Join Date: Apr 2011
Device: Kindle 3, Samsung Tab 4
|
Quote:
|
|
12-28-2023, 04:17 PM | #10 |
Bibliophagist
Posts: 41,301
Karma: 158182188
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Also note that vh & vw are only supported for epub3. Later versions of ADE will display epub3 but are not even close to feature complete.
|
12-28-2023, 05:39 PM | #11 | |
Reading till the spring
Posts: 12,527
Karma: 94058919
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Or Aldiko Basic or Bluefire for older Androids that can't install Pocketbook or Lithium. The vh and vw won't work on loads of Apps and ereaders. |
|
12-28-2023, 06:19 PM | #12 | |
Member
Posts: 10
Karma: 10
Join Date: Dec 2023
Device: none
|
Quote:
Android ePub readers suck... We're veering off-topic here, but I'm planning to start a thread to find the best ePuB readers on Android, because as far as I'm concerned, they're all trash. My eBook reading journey began on Apple Books (previously called iBooks) where the UI and UX were outstanding. ...Even Google Play Books For years, I have been trying to find an Android App that comes close to it, and they all suck. Even Google Playbooks. I use Google PlayBooks because it comes the closest to Apple in terms of UI & UX, but it's still bad. First, there's the spying that you hinted at. But also, I hate the fact that I have to upload my own ebooks to Google Drive in order to read them. It's ridiculous! I should be able to import files and read without an internet connection. And although Google PlayBooks sucks, all the other Android ePub readers don't even come close to it in terms of UI & UX. They are so much worse. UI & UX are greatly important to me. Between a feature rich app with poor UI & UX, and an app that has fewer features with great UI & UX, I'm almost always going to lean on the latter. All the Android ePub readers are ugly AF. Google Play Books is by far the sleekest. Months or maybe even a year ago, Aldiko had a major update, that in terms of UI & UX seemed promising, but I tried it and it's so clunky. Plus, they don't have the turning page animation, which is a must for me. CONCLUSION: I have little doubt that most of you strongly disagree with me, but yeah, I'm super picky. I know that Apple has its own issues too, but if Apple Books existed on Android, I would be happy. I hate that, overall, iOS seems to have a far better quality of apps than Android. It's almost as if only huge billion-dollar corporations are cable of making great apps, which we all know is not true, but as far as ePub reader apps are concerned, it seems to be the case and I hate that. I'm still waiting for a great Android ePub reader app. |
|
12-29-2023, 06:32 AM | #13 |
Reading till the spring
Posts: 12,527
Karma: 94058919
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
01-03-2024, 06:46 PM | #14 | ||
Wizard
Posts: 2,306
Karma: 13056777
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
For more talk about that, see the discussion in: There are Android apps that are very good + do follow the standards though. For example, I personally use:
There are also quite a few good Android apps that RbnJrg mentioned/lists over the years too. Or just buy a physical e-ink device. Then you'll have the best experience, like many readers here on MobileRead! Reading stuff on my Kobo is awesome. Last edited by Tex2002ans; 01-03-2024 at 06:58 PM. |
||
Tags |
calibre 7.28, cover, cover art, epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smashwords error report:Please make your cover image the very first page of your EPUB | slicknick001 | ePub | 2 | 01-12-2014 06:03 PM |
Images fit page as mobi, but not ePub | Mat Ward | ePub | 2 | 12-20-2012 12:48 AM |
Can't make cover the first page in epub | Ripplinger | Sigil | 3 | 11-07-2012 04:21 PM |
ePub files do not center a custom <hr /> tag! | Haidon | ePub | 2 | 08-21-2010 05:29 AM |
How to center/fit page width SVG images with <OBJECT> | amoroso | ePub | 0 | 07-31-2010 12:48 PM |