Quote:
Originally Posted by salamanderjuice
Just a reminder that OP said graphic novel/comic and for that fixed layout EPUB 3 is 100% the correct choice. Reflowable would be a very bad experience in that case.
You could also make high quality PNGs of the images and try Kindle Comic Converter (it can make EPUBs despite the name) if you're having trouble with CSPs output.
|
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.