Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2012, 04:57 AM   #16
sassanik
Guru
sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.sassanik ought to be getting tired of karma fortunes by now.
 
sassanik's Avatar
 
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>
without calibre the code looks like
Code:
 <p><img alt="" src="../Images/cover.jpg" />&nbsp;</p>
so in theory something like
Code:
 <p><img alt="" src="../Images/cover.jpg" height="100%" width="100%" /></p>
should fix it?

Amy
sassanik is offline   Reply With Quote
Old 01-16-2012, 06:05 AM   #17
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Quote:
Originally Posted by sassanik View Post
Code:
 <p><img alt="" src="../Images/cover.jpg" height="100%" width="100%" /></p>
Thats how i do it, but without width and a class named coverimg having the rules for centered, padding and margins assigned to the p-element.
huebi is offline   Reply With Quote
Advert
Old 01-20-2012, 05:20 PM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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>
and in the CSS...

Code:
div.cover {
text-align: center
}

Last edited by JSWolf; 01-20-2012 at 05:33 PM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:08 PM.


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