Quote:
Originally Posted by DNSB
However since the OP mentioned creating an epub2 which does not support fixed layout. What he seems to be doing is trying to generate a full page image for each image. I would suggest using an svg wrapper for the images and dumping the viewport.
Code:
<style type="text/css" title="override_css">
@page {padding: 0; margin:0;}
body { text-align: center; padding:0; margin: 0; }
</style>
</head>
<body>
<div>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1000 1500" preserveAspectRatio="xMidYMid meet"><image width="1000" height="1500" xlink:href="../Images/image000.jpeg"/></svg>
</div>
Set the width and height to the correct values for the images and this should allow a maximum size image without having to play games.
Note that this snippet is set for a 1000x1500 image which will have a left/right border on an eInk 3x4 aspect ratio screen. A 1125x1500 image would fit the screen aspect ratio.
|
Thank you David, I'm not too familiar with where this would go. Would I put that in the navigation folder, the style.css, etc? If so, does it matter what bracket of code it goes in?