Answers.Body: <p>The ePub 3.0 standard specifically names SVG as one of the <a href="http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-core-media-types">core media types</a> to be supported. The 2.0 standard also names SVG as one of the supported types in the <a href="http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm#Section2.3.4">img tag documentation</a>. So any device supporting ePub would have to be able to handle an SVG image, which is the vast majority.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-19T06:44:59.520Z
Answers.LastActivityDate: 2013-12-19T06:44:59.520Z
Answers.UserDisplayName: Donald.McLean
Answers.Body: <p>The 2014.1 version of the "Amazon Kindle Publishing Guidelines" indicates support for many SVG elements -- including -- see page 26. </p>
  
  <p>I'm not entirely sure whether the svg can include embedded bitmaps though. </p>
  
  <p>Also, <a href="http://epubtest.org/compare/" rel="nofollow">http://epubtest.org/compare/</a> has some entries for device support by svg feature. Significantly I note that Kindle data has not been filled in, and ibooks isn't even listed. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-15T08:05:22.707Z
Answers.Text: It seems possible to embed bitmap in an SVG tag: http://denis.papathanasiou.org/2011/06/15/illustrated-ebooks-with-epub-using-the-svg-image-element/
Answers.UserDisplayName: Thomas Arildsen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-05T19:30:36.243Z
Answers.LastActivityDate: 2014-03-05T19:30:36.243Z
Answers.UserDisplayName: idiotprogrammer
Answers.Body: <p><a href="https://ef.gy/ebook-wtfs" rel="nofollow noreferrer">This article</a> from 2013 says:</p>
  
  <blockquote>
    <p>for some reason, SVG image support in modern products is still a kind of an afterthought, and it shows. The EPUB standards authors were nice enough to include support for these files in the EPUB standards, which is great in principle, yet they included content negotiation mechanisms so that SVG support is still technically optional. This in turn means that the content authors are forced to include alternatives for their SVG content in case the ebook reader author couldn't be arsed to support this format.</p>
  </blockquote>
  
  <p>But newer versions of ADE <a href="http://epubtest.org/testsuite/epub3/feature/svg-in-spine/" rel="nofollow noreferrer">seem to support SVG</a> even on the spine.</p>
  
  <p>Then again, how many people buy a new eBook reader every year (or make updates). So we will have to deal with older devices for quite some time...</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-22T17:18:01.993Z
Answers.LastActivityDate: 2016-11-22T17:18:01.993Z
Answers.UserDisplayName: mb21
Answers.Body: <p>As <a href="https://ebooks.stackexchange.com/a/101/85">Donald points out in his answer</a>, (new) devices would have to support SVG 'images' as support for SVG is specified in the EPUB 3.0 standard.</p>
  
  <p>For line drawings, but also for zoomable images (maps come to mind), this is a vastly superior format over any pixel based file format.</p>
  
  <p>How soon that adaptation will happen will be influenced by how easy it is to adapt the various rendering engines used in the devices. Some of the features of 3.0 require more processing power, potentially reducing battery life even if not actively used. </p>
  
  <p>Conversion to non-EPUB formats of EPUB 3.0 with SVG is going to be more difficult, some will not support it at all (which would require rendering in some pixel based format at some resolution), conversion to others formats (PDF) would become more complex than the current text and image conversion.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-19T07:07:20.280Z
Answers.Text: Of course we can start making bets on how long it takes for software like calibre to support EPUB3.0 SVG conversion into other formats.
Answers.UserDisplayName: Anthon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-19T07:51:18.813Z
Answers.Text: I read somewhere that Calibre already converts SVG files to images when creating MOBI files.
Answers.UserDisplayName: Nathan Osman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-19T08:07:23.180Z
Answers.Text: @NathanOsman, I did not know. And I wonder a bit because kovidgoyal indicated last year he was not going to put EPUB 3.0 support into calibre himself.
Answers.UserDisplayName: Anthon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-19T07:05:57.520Z
Answers.LastActivityDate: 2016-12-08T21:59:37.290Z
Answers.LastEditDate: 2017-04-13T13:00:05.480Z
Answers.UserDisplayName: Anthon
Body: <p>I didn't mention it in <a href="https://ebooks.stackexchange.com/questions/93/is-there-a-standardized-or-recommended-image-format-size-and-resolution-when-e">my previous question</a> because it's an image format made of vectors, but would SVG provide a usable alternative for non-pixel images like illustrations? </p>
  
  <p>If, how well is SVG supported by the mass of ebook readers… and is that support dependent on specific ebook formats? (Not including TXT as it's obvious you can't embed SVG into that.)</p>
  
Tags: <file-format><reference-request><standard><embedding><svg>
Title: How well is SVG (being a "pixel image" alternative) supported?
UserDisplayName: e-sushi
ThreadText: # How well is SVG (being a "pixel image" alternative) supported?
  
  (Asked by: username_0 on 2013-12-19)
  
  I didn't mention it in [my previous question](https://ebooks.stackexchange.com/questions/93/is-there-a-standardized-or-recommended-image-format-size-and-resolution-when-e) because it's an image format made of vectors, but would SVG provide a usable alternative for non-pixel images like illustrations?
  
  If, how well is SVG supported by the mass of ebook readers… and is that support dependent on specific ebook formats? (Not including TXT as it's obvious you can't embed SVG into that.)
  
  **Tags:** file-format, reference-request, standard, embedding, svg
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_5 on 2013-12-19. Score: 10 | Accepted answer
  
  As [Donald points out in his answer](https://ebooks.stackexchange.com/a/101/85), (new) devices would have to support SVG 'images' as support for SVG is specified in the EPUB 3.0 standard.
  
  For line drawings, but also for zoomable images (maps come to mind), this is a vastly superior format over any pixel based file format.
  
  How soon that adaptation will happen will be influenced by how easy it is to adapt the various rendering engines used in the devices. Some of the features of 3.0 require more processing power, potentially reducing battery life even if not actively used.
  
  Conversion to non-EPUB formats of EPUB 3.0 with SVG is going to be more difficult, some will not support it at all (which would require rendering in some pixel based format at some resolution), conversion to others formats (PDF) would become more complex than the current text and image conversion.
  
  > **Comments:**
  > **username_5**: Of course we can start making bets on how long it takes for software like calibre to support EPUB3.0 SVG conversion into other formats.  
  > **username_6**: I read somewhere that Calibre already converts SVG files to images when creating MOBI files.  
  > **username_5**: @NathanOsman, I did not know. And I wonder a bit because kovidgoyal indicated last year he was not going to put EPUB 3.0 support into calibre himself.  
  
  ---
  
  ### Answer by username_1 on 2013-12-19. Score: 8
  
  The ePub 3.0 standard specifically names SVG as one of the [core media types](http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-core-media-types) to be supported. The 2.0 standard also names SVG as one of the supported types in the [img tag documentation](http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm#Section2.3.4). So any device supporting ePub would have to be able to handle an SVG image, which is the vast majority.
  
  
  ---
  
  ### Answer by username_2 on 2014-03-05. Score: 3
  
  The 2014.1 version of the "Amazon Kindle Publishing Guidelines" indicates support for many SVG elements -- including -- see page 26.
  
  I'm not entirely sure whether the svg can include embedded bitmaps though.
  
  Also, <http://epubtest.org/compare/> has some entries for device support by svg feature. Significantly I note that Kindle data has not been filled in, and ibooks isn't even listed.
  
  > **Comments:**
  > **username_3**: It seems possible to embed bitmap in an SVG tag: http://denis.papathanasiou.org/2011/06/15/illustrated-ebooks-with-epub-using-the-svg-image-element/  
  
  ---
  
  ### Answer by username_4 on 2016-11-22. Score: 2
  
  [This article](https://ef.gy/ebook-wtfs) from 2013 says:
  
  > for some reason, SVG image support in modern products is still a kind of an afterthought, and it shows. The EPUB standards authors were nice enough to include support for these files in the EPUB standards, which is great in principle, yet they included content negotiation mechanisms so that SVG support is still technically optional. This in turn means that the content authors are forced to include alternatives for their SVG content in case the ebook reader author couldn't be arsed to support this format.
  
  But newer versions of ADE [seem to support SVG](http://epubtest.org/testsuite/epub3/feature/svg-in-spine/) even on the spine.
  
  Then again, how many people buy a new eBook reader every year (or make updates). So we will have to deal with older devices for quite some time...
  
  
  ---
  
  