08-03-2011, 11:17 PM | #1 |
Member
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 |
08-03-2011, 11:21 PM | #2 |
Resident Curmudgeon
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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> |
08-04-2011, 12:24 PM | #3 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Make sure 'Preserve aspect cover ratio' is checked in calibre's epub output options.
|
08-04-2011, 12:35 PM | #4 |
Resident Curmudgeon
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
08-06-2011, 02:43 PM | #5 |
Member
Posts: 15
Karma: 10
Join Date: Aug 2011
Location: Centennial, Colorado
Device: iPad
|
Preserve Aspect Cover Ratio
|
03-31-2013, 12:45 PM | #6 |
Maria Schneider
Posts: 3,746
Karma: 26439330
Join Date: Aug 2009
Location: Near Austin, Texas
Device: 3g Kindle Keyboard
|
|
Tags |
calibre, epub, indesign, preserveaspectratio |
|
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 11:57 AM |
0.7.56 Crash on startup: "'QWidget' Object has no attribute 'fillier'" | MrAndreBB | Calibre | 0 | 04-17-2011 02:44 PM |
Bad value for "preserveAspectRatio" error! | Guido Henkel | Calibre | 3 | 06-09-2010 02:21 AM |
attribute "span" not | paulpeer | Sigil | 14 | 03-10-2010 06:24 PM |