![]() |
#16 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 774
Karma: 1211741
Join Date: May 2008
Location: Oregon
Device: EB1150, iPhone, Cool-er Purple, Pocketbook 360, Kindle Fire
|
cover sizing issue
I am having the same problem with the Nook covers not displaying correctly, the overflow the bounds of the screen.
It looks fine when I upload to Amazon and when I view in Calibre. If I run the file through Calibre and then edit in Sigil the cover gets the svg tag. I am guessing there is some setting that the Nook is looking for to size the image correctly. I have set up the file with a the semantics of "cover" added to that area. Do I need to add in specific html? I hate to mess around the css file, mostly because I am not very good at it! Looking at the code view on one of the calibre generated epubs I see: Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 600 800" width="100%"> <image height="800" width="600" xlink:href="../Images/cover.jpeg"></image> </svg> Code:
<p><img alt="" src="../Images/cover.jpg" /> </p> Code:
<p><img alt="" src="../Images/cover.jpg" height="100%" width="100%" /></p> Amy |
![]() |
![]() |
![]() |
#17 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Here is the proper code. Fix as needed. It keeps the cover aspect ratio correct.
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ops="http://www.idpf.org/2007/ops" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <head> <title>Ready Player One</title> <link href="Clin_9780307887450_epub_css_r1.css" rel="stylesheet" type="text/css"/> <meta content="application/xhtml+xml; charset=utf-8" http-equiv="Content-Type"/> </head> <body style="margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; text-align: center;"> <div class="cover"> <img alt="" src="images/Clin_9780307887450_epub_cvi_r1.jpg" height="100%"/> </div> </body> </html> Code:
div.cover { text-align: center } Last edited by JSWolf; 01-20-2012 at 05:33 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cover Size Column? | transmitthis | Library Management | 5 | 06-19-2011 06:27 AM |
Cover size | Dopedangel | Calibre | 2 | 03-19-2010 04:32 AM |
Cover Image Size | gr8npwrfl | Calibre | 0 | 12-21-2009 12:49 AM |
Optimal cover size | readyread | Calibre | 4 | 12-19-2009 12:47 PM |
Help adjusting line size, please. | Stitchawl | Calibre | 4 | 04-05-2009 10:53 PM |