Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2011, 10:17 PM   #1
stevej46
Member
stevej46 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Aug 2011
Location: Centennial, Colorado
Device: iPad
Bad Value Attribute "PreserveAspectRatio"

It seems I have one last error to fix before I can upload my book.


ERROR: /Users/Steve/Calibre Library/Stephen H. Johnson/I In Florida (45)/I In Florida - Stephen H. Johnson.epub/OEBPS/Text/titlepage.xhtml(22): bad value for attribute "preserveAspectRatio"

Here is the title page code:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<head>
<meta content="true" name="calibre:cover" />

<title>Cover</title>
<style title="override_css" type="text/css">

/*<![CDATA[*/

@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
/*]]>*/
</style>
</head>

<body style="">
<div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 500 751" width="100%">
<image height="751" width="500" xlink:href="../Images/cover.jpeg"></image>
</svg>
</div>
</body>
</html>

I've tried putting my own title page in the InDesign format.. I've also tried adding the cover photo from Calibre in the metadata area. Always get the some error.

What am I doing wrong?

Stevej46
stevej46 is offline   Reply With Quote
Old 08-03-2011, 10:21 PM   #2
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: 36,168
Karma: 17163730
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="calibre:cover" content="true"/>
        <title>Cover</title>
        <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 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 510 680" preserveAspectRatio="xMidYMid meet">
                <image width="510" height="680" xlink:href="coverh4a200033db.jpg"/>
            </svg>
        </div>
    </body>
</html>
Replace the resolution with your images and replace the image name with your own.
JSWolf is offline   Reply With Quote
 
Enthusiast
Old 08-04-2011, 11:24 AM   #3
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Make sure 'Preserve aspect cover ratio' is checked in calibre's epub output options.
charleski is offline   Reply With Quote
Old 08-04-2011, 11:35 AM   #4
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: 36,168
Karma: 17163730
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by charleski View Post
Make sure 'Preserve aspect cover ratio' is checked in calibre's epub output options.
The code I posted is from Calibre with the proper aspect ratio for the cover image.
JSWolf is offline   Reply With Quote
Old 08-06-2011, 01:43 PM   #5
stevej46
Member
stevej46 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Aug 2011
Location: Centennial, Colorado
Device: iPad
Preserve Aspect Cover Ratio

Quote:
Originally Posted by charleski View Post
Make sure 'Preserve aspect cover ratio' is checked in calibre's epub output options.
It worked fine once I did check the box in Calibre Output Options.

Thanks,

I have my first book published on Lulu.com now.

Stevej46
stevej46 is offline   Reply With Quote
Old 03-31-2013, 11:45 AM   #6
BearMountainBooks
Maria Schneider
BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.BearMountainBooks ought to be getting tired of karma fortunes by now.
 
BearMountainBooks's Avatar
 
Posts: 2,008
Karma: 17973840
Join Date: Aug 2009
Location: Near Austin, Texas
Device: 3g Kindle Keyboard
Quote:
Originally Posted by charleski View Post
Make sure 'Preserve aspect cover ratio' is checked in calibre's epub output options.
Thanks for this.
BearMountainBooks is offline   Reply With Quote
Reply

Tags
calibre, epub, indesign, preserveaspectratio

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
attribute "scheme" from namespace error in epubcheck 1.0.5 thunderune ePub 15 06-30-2011 10:57 AM
0.7.56 Crash on startup: "'QWidget' Object has no attribute 'fillier'" MrAndreBB Calibre 0 04-17-2011 01:44 PM
Bad value for "preserveAspectRatio" error! Guido Henkel Calibre 3 06-09-2010 01:21 AM
attribute "span" not paulpeer Sigil 14 03-10-2010 05:24 PM


All times are GMT -4. The time now is 09:39 PM.


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