View Single Post
Old 08-13-2014, 02:52 PM   #30
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,367
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by cybmole View Post
ok - so where the source has a single xhtml page that goes:
<body.....
some text paragraph(s)
a <img ....picture...
some more text...
</body...

you would break that into 3 files ?

that would not be easy to automate i fear, or to do manually if a book has many images ?
I can see that it would be less traumatic if the images already have a file each, as some map images at start of books do.

here is an example from Game of thrones - the book starts with 4 x maps,that have already been placed into 4 separate files. So this should be an easier case - one that may even succumb to regex ?

If I pull out that.png image from the epub & check it's properties, it is 1400 x 2257. so it contains a lot of details which will be lost on an e-reader screen. So what's really needed here is the ability to zoom into parts of the image which I think is what the svg wrapper is intended to enable ?
maybe I should recode this & the next 3 , based on your guidance & see how it appears on the Aura HD when transferred ?
I should probably also move this to its own thread & not hijack the "buggy sofware" debate - though that seems to have fizzled out.
Code:
</head>

<body class="calibre">
  <div class="centered-image"><img alt="Map of The North" class="calibre9" src="../Images/map001.png" /></div>

  <div class="pgbrk" id="calibre_pb_0"></div>
</body>
We should probably move this to a new thread. However if you look in the EBook Formats forum under the Epub section, you'll find a lot of this infomation is already there. One example is Svg wrapper and image resizing thread. https://www.mobileread.com/forums/sho...d.php?t=234077.

And yes, I do split the files which is a one click operation using Sigil. A bit of an annoyance but the other choice is to do the same coding inline which is a bit messier and led to some issues on some devices. Heck, the flipping iPad has enough issues with disregarding legitimate CSS as you will find on the Pigs, Gourds and Wikis blog or in the epub forum here.

Not sure if this thread fizzled or if we simply did an effective job of hijacking it.

Regards,
David
DNSB is offline   Reply With Quote