Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2014, 09:36 PM   #1
heulwen.jones
Junior Member
heulwen.jones began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: 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
heulwen.jones is offline   Reply With Quote
Old 04-05-2014, 10:30 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 60,948
Karma: 38134837
Join Date: Nov 2006
Location: UK
Device: Kindle PW2, iPad Retina Mini, iPhone 4, MS Surface Pro
Moved to the ePub forum.
HarryT is online now   Reply With Quote
Old 04-06-2014, 03:00 AM   #3
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 248
Karma: 556004
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?
dgatwood is offline   Reply With Quote
Old 04-06-2014, 10:18 PM   #4
heulwen.jones
Junior Member
heulwen.jones began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: 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
heulwen.jones is offline   Reply With Quote
Old 04-06-2014, 10:32 PM   #5
heulwen.jones
Junior Member
heulwen.jones began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: 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
heulwen.jones is offline   Reply With Quote
Old 04-07-2014, 12:42 AM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 248
Karma: 556004
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 01:00 AM.
dgatwood is offline   Reply With Quote
Reply

Tags
ibooks, image, ipad, svg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iBooks Not Displaying SVG Covers in 'Book Mode' twedigteam Apple Devices 0 07-10-2013 02:38 PM
Scaling up an image via SVG Kayto ePub 27 01-26-2013 03:38 AM
can I use SVG images in mobi? sarah_pnix Kindle Formats 4 01-07-2013 04:21 PM
Converting a bitmap to SVG Jellby Workshop 3 12-11-2011 05:13 PM
Help displaying SVG notes. mastroalex Sony Reader Dev Corner 2 09-30-2011 05:16 AM


All times are GMT -4. The time now is 05:40 AM.


MobileRead.com is a privately owned, operated and funded community.