|
|
#1 |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2011
Location: Centennial, Colorado
Device: iPad
|
Bad Value Attribute "PreserveAspectRatio"
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 |
|
|
|
|
|
#2 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,205
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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>
__________________
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
|
Make sure 'Preserve aspect cover ratio' is checked in calibre's epub output options.
__________________
if ePub is Homo neanderthalensis, then Mobipocket is a bunch of baboons flashing their bottoms at each other |
|
|
|
|
|
#4 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,205
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
The code I posted is from Calibre with the proper aspect ratio for the cover image.
__________________
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2011
Location: Centennial, Colorado
Device: iPad
|
Preserve Aspect Cover Ratio
|
|
|
|
|
|
#6 | |
|
Maria Schneider
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,291
Karma: 14947622
Join Date: Aug 2009
Location: Near Austin, Texas
Device: 3g Kindle Keyboard
|
Quote:
__________________
BearMountainBooks Online Store BearMountainBooks on Goodreads Amazon US: Under Witch Moon (urban fantasy series), Executive Lunch (Humor mystery series) Barnes and Noble Sony Bookstore Also available at: Apple, and Kobobooks |
|
|
|
|
![]() |
| Tags |
| calibre, epub, indesign, preserveaspectratio |
| Thread Tools | Search this Thread |
|
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 |