![]() |
#16 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
oops, sorry, forgot to delete out the style part.
Code:
<div class="Image"><img alt="0425" class="image1" src="../Images/0425.jpg" /></div> |
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
My experience with a SVG containing a viewbox is that is only really works full screen as a separate HTML file. If I want to enter a real SVG file into the book itself, I just add it as an image and reference to it like an image (e.g. <img src="../Images/picture.svg" />). |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
eggheadbooks1, I uploaded an ePub I made for the purpose of font testing on the iPad. The cover dimensions are: 1024x1339(WxH)
I used an SVG wrapper for the cover and it looks good on ADE, Calibre, iPad, Readium, Android... unfortunately I don't have other epub-readers at the moment. If this doesn't work than I suggest you stick with Toxaris's advice :/ |
![]() |
![]() |
![]() |
#19 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You can download the Sony Reader Library that will show pretty closely how the epub will look in the actual reader at:
http://esupport.sony.com/US/p/model-...d#/downloadTab or the equivalent location for your country. The later versions will not accurately show the lack of support for justification, but it will show the doubling up of images when they are too large, etc. Even if Toxaris's add in may produce a fairly plain epub, it will be a working one which only needs touching up instead of major surgery just to get the TOC to work. |
![]() |
![]() |
![]() |
#20 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Quote:
![]() EDIT: After installing the Sony reader for PC the cover image looks okay. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#22 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Toxaris: it is ePub2, but contrary to what you suggest, not all ePub2 readers behave the same way. In fact, it was precisely a problem with the Sony and Nook reading apps that created the need for the SVG wrapper: if you do not code in a screen percentage, then these apps cut images off (they are not shrunk to fit); but if you code in a screen percentage without max-height/width values, then higher-res devices upsize, often horribly (there are many posts about iPad image destruction).
Originally, ADE was programmed to shrink all images to fit, but then it changed and now also cuts off images that do not have a screen percentage coded in. Mrmikel: unfortunately, the Sony Reader app does not replicate how a book will look in an actual Sony Reader any more than the Kindle for PC app replicates how a book looks in my Kindle Fire. It's close but it is not the same (even Kindle Previewer does not accurately replicate device functionality). I have the Sony Reader for PC and the SVG wrapper works fine in it. It works fine in a new Sony Reader device but not a really old one. Odedta: in the ePub you sent (thank you) the cover is distorted when ADE is set to full screen (and the cover isn't centered, though you may not want it to be). See attached comparisons. Thanks everyone for weighing in. |
![]() |
![]() |
![]() |
#23 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
P.S. It has also occurred to me that Sony may have put out a firmware upgrade for this guy's older device but he never updated or he doesn't know how. How can we code for that?
|
![]() |
![]() |
![]() |
#24 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
I attached screenshots to show you how it looks on my monitor, the aspect ratio is preserved, centering the image is easy via CSS rules.
What happens if you remove the width? (part in red) Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMaxYMid" version="1.1" viewBox="0 0 720 960" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="100%" width="100%" xlink:href="../Images/cover.jpg"></image>
</svg>
|
![]() |
![]() |
![]() |
#25 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Hi Odedta:
Removing the width value does stop the distortion, but this is still an SVG wrapper and that seems to be the problem with iBooks and the old Sony reader. |
![]() |
![]() |
![]() |
#26 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,286
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Standard reply from any Tech company; please apply all available updates to your system and then replicate the issue.
|
![]() |
![]() |
![]() |
Tags |
ibooks, sony, svg |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Svg wrapper and image resizing | Nabodita | ePub | 24 | 05-02-2014 12:21 AM |
How can hyperlinks be added inside SVG wrapper? | GrannyGrump | Workshop | 9 | 03-03-2014 06:14 AM |
Need Example SVG wrapper including caption | GrannyGrump | ePub | 30 | 11-06-2013 03:20 AM |
Adding an SVG Wrapper | ghostyjack | Sigil | 16 | 06-15-2013 05:13 AM |
An Issue about a SVG wrapper | RbnJrg | Kindle Formats | 29 | 06-10-2013 08:11 PM |