04-04-2014, 10:36 PM | #1 |
Member
Posts: 15
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire, iPad
|
SVG Images on iPad - contained bitmap image not displaying
I am investigating using SVG images in our ePubs for some graphs etc. as text is too fuzzy in some images when using jpg or png (plus Apple Store apparently rejects ePubs if too much text in bitmap images).
I am testing generating the SVGs via Adobe Illustrator CC and then manually adding into ePub file. The SVGs seem to work fine in both Adobe Digital Editions and in iBooks/iPad except for one issue: If the image has embedded bitmaps (eg. we have an SVG image with embedded bitmap images as well as text) the bitmap images don't display in iBooks/iPad but the text does. Note that both text and images DO display correctly in Digital Editions. Any ideas as to why this might be happening? The SVG images seem to validate correctly using the Oxygen validator? Many thanks for your help : ) Heulwen |
04-05-2014, 11:30 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Moved to the ePub forum.
|
Advert | |
|
04-06-2014, 04:00 AM | #3 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Does the SVG work if you look at the enclosing HTML page in Safari or Chrome?
Can you post an example of the SVG? |
04-06-2014, 11:18 PM | #4 |
Member
Posts: 15
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire, iPad
|
If I open the XHTML page that contains the SVG image in either Safari or Chrome the image displays correctly. It seems to be something unique to iBooks/iPad?
Heulwen |
04-06-2014, 11:32 PM | #5 |
Member
Posts: 15
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire, iPad
|
Here is a sample SVG (with both image and text):
https://www.dropbox.com/s/j3uwxb0xek...rt_WordWEB.svg If you can get it to work in an ePub on the iPad/iBooks i'll be very excited! Heulwen |
Advert | |
|
04-07-2014, 01:42 AM | #6 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
When I include it in an <img> tag from a local XHTML file, Safari doesn't load it, either. Same problem in Firefox. It might be a bug in the "same domain" code.
However, if I strip out the preamble and include the svg element itself inline as part of an HTML page, it works for me in both Safari and iBooks (at least in OS X). Similarly, if I use the <embed> tag instead of <img>, it works. After you make that change, please file a bug at bugreport.apple.com. I would expect any SVG that works inline and passes validation to work correctly when referenced externally with an img tag, and I'm really not sure why this one doesn't. Last edited by dgatwood; 04-07-2014 at 02:00 AM. |
Tags |
ibooks, image, ipad, svg |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iBooks Not Displaying SVG Covers in 'Book Mode' | twedigteam | Apple Devices | 0 | 07-10-2013 03:38 PM |
Scaling up an image via SVG | Kayto | ePub | 27 | 01-26-2013 04:38 AM |
can I use SVG images in mobi? | sarah_pnix | Kindle Formats | 4 | 01-07-2013 05:21 PM |
Converting a bitmap to SVG | Jellby | Workshop | 3 | 12-11-2011 06:13 PM |
Help displaying SVG notes. | mastroalex | Sony Reader Dev Corner | 2 | 09-30-2011 06:16 AM |