View Single Post
Old 05-03-2012, 03:29 PM   #220
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@kiwidude,

I'm a regular user of ePubFixer. Just in case it helps I've attached a before-and-after version of the cover xhtml file. The 'before' is from a retail epub which has not been calibre converted.

The 'after' example is following use of the ePubFixer 'Edit Cover' option with 'Preserve Aspect Ratio' unchecked. If it had been checked the only difference would have been
Code:
preserveAspectRatio="xMidYMid meet"
rather than
Code:
preserveAspectRatio="none"
Before
Spoiler:
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8"/>
<link href="adle_9781101543535_oeb_css_r1.css" rel="stylesheet" type="text/css"/>
<title>.</title>
<link href="page-template.xpgt" rel="stylesheet" type="application/adobe-page-template+xml"/>
<meta content="urn:uuid:xxxxxxxxxxxxx" name="Adept.expected.resource"/>
</head>
<body style="margin-top:0px;margin-left:0px;margin-right:0px;margin-bottom:0px;text-align:center;background-color:#FFFFFF;">
<p><a id="cover"/></p>
<div class="centerAligned"><img alt="001" class="imgepub" src="adle_9781101543535_msr_cvi_r1.jpg" style="height:100%;text-align:center;"/></div>
</body>
</html>



After
Spoiler:
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">
  <head>
    <meta content="text/html; charset=UTF-8" />
    <title>
      .
    </title>
    <meta content="urn:uuid:xxxxxxxxxxxxx" name="Adept.expected.resource" />
    <style type="text/css">
/*<![CDATA[*/
    body.c1 {margin:0; padding: 0; border-width: 0}
    /*]]>*/
    </style>
  </head>
  <body class="c1">
    <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 1071 1600" width="100%">
      <image height="1600" width="1071" xlink:href="adle_9781101543535_msr_cvi_r1.jpg"></image>
    </svg>
  </body>
</html>


(I've deliberately obliterated the 'urn:uuid:' code in case it revealed personal stuff???)
jackie_w is offline   Reply With Quote