Answers.Body: <p>I don't know a lot about SVG, but I  have played around very superficially with svg in ebooks (about a year or two ago). What I found was that although my  simple svg worked in one or two epub readers, support on Kindle was very iffy. </p>
  
  <p>If you look at the <a href="https://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf" rel="nofollow noreferrer">Amazon Kindle Publishing Guidelines</a>, you will see about half a page on SVG support. It seemed very limiting. That probably accounts for the lack of interest in the topic -- especially because it's just as easy to make a jpg or png. </p>
  
  <p>If there is SVG in an ebook, I'm guessing it is an ebook targeted to one specific reading system. (I suspect that academic publishers would be the one pushing for it most). </p>
  
  <p>As ebooks become more graphics-intensive, ebook size will become a more important consideration, and scalable graphics will finally be important.  One crazy thing about KF8 format is that the <strong>max-width</strong> css attribute isn't supported -- making it hard or at least complicated for images to scale in an ebook predictably.   </p>
  
  <p>SVG is already supported in major browsers, and it can be frustrating not to see such features supported in ebook reading systems. But there is typically a lag between when something is supported in browsers and when the epub standard requires it -- and when reading systems decide to deploy that. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-05T08:55:36.027Z
Answers.Text: Thanks a bunch for your answer. I figured as much, because the internet was quiet on this topic. I made a very graphic intensive ebook, so SVG would have saved my download size, but I guess I'll have to roll with JPG on this one.
Answers.UserDisplayName: Wouter Chompff
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-04T17:50:32.733Z
Answers.LastActivityDate: 2019-08-04T17:50:32.733Z
Answers.UserDisplayName: idiotprogrammer
Answers.Body: <p>As far as I can remember InDesign only supports 3 image formats when exporting to epub: jpg, png, and gif. So even if you place the svg files in InDesign they will be converted on export. If you edit the epub after exporting it you could replace the image files with the vectors. Of course, that doesn't do anything to make various e-reader apps recognize .svg</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T07:59:20.907Z
Answers.Text: Thta's right. Only ancient versions of Indesign still allow for SVG export.
Answers.UserDisplayName: Wouter Chompff
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-14T14:40:43.453Z
Answers.Text: I recommend just setting your object export compression to 300dpi and choose gif to maintain transparency. That should be detailed (and small) enough for a good user experience on any device.
Answers.UserDisplayName: b_q
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-12T04:43:07.223Z
Answers.LastActivityDate: 2019-09-12T04:43:07.223Z
Answers.UserDisplayName: b_q
Answers.Body: <p>I'm constantly amused how the Web is "just now discovering" vector formats. HTML has no particular support for it, Word is even worse, and SVG format is just catching on.  <strong>But vector has been a staple of desktop publishing since 1986</strong>. </p>
  
  <p>An ebook is analogous to desktop publishing, not making a web page. </p>
  
  <p>The traditional vector graphics format is PostScript. It is the core of Portable Document Format, aka PDF. </p>
  
  <p>Because of that, PostScript format art drops very efficiently into PDF.</p>
  
  <p>While you may make your art in particular platforms like Illustrator or Corel Draw, you should be exporting them in PostScript or some other vector format which your composition software can place.  Then, the vector art will embed <em>as</em> vector art, won't suffer compression damage, and will look sharp at any zoom. </p>
  
  <p>If your composition software can't handle this competently, then it's time for better composition software.  I could do this in Illustrator/PageMaker in 1987 on a computer with 512K RAM and clocked at 7 MHz, so it must surely be possible today. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-21T06:18:19.080Z
Answers.Text: Wow, that's awesome. Two issues with this: my Illustrator doesn't seem to have a PostScript export format. Second issue, the program in which I design the ebooks: Indesign - doesn't allow for vector export when creating an ePub.
Answers.UserDisplayName: Wouter Chompff
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-29T08:39:09.867Z
Answers.Text: An ebook is actually a zip file of mostly html documents, css, and a few xml files. So no, it is not like desktop publishing, but is in fact much more like  "the web" but more like a website, not a web page. Inkscape is a better option, as it is stable, free/open source vector graphics editor. That said, ebook readers are the target for ebooks, and those work best with jpg files which can be exported from vector graphics editors (actually svg --> png --> jpg) and then compressed.
Answers.UserDisplayName: jeffmcneill
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-19T19:14:23.990Z
Answers.LastActivityDate: 2019-08-19T19:14:23.990Z
Answers.UserDisplayName: Harper - Reinstate Monica
Body: <p><strong>How can one add .SVG files to ebooks in a way that is supported by major ereaders?</strong></p>
  
  <p>I've raked through the entire internet, and I find two things:</p>
  
  <ol>
  <li>People bragging about including SVG in their eBook.</li>
  <li>An absence of how-to guides.</li>
  </ol>
  
  <p>This is obviously a well-kept secret. I'm making a reflowable ePub in InDesign with at least 200 illustrations, so I'd love to include .SVG.</p>
  
  <p>The only workaround I found was <a href="https://svg.scand.com/" rel="nofollow noreferrer">this weird plugin</a> for Indesign - that doesn't include export support if you don't have Adobe Indesign CS6.</p>
  
  <p>I feel very passionate about this so feel free to shake me down for money or natural payments if you have the answer.</p>
  
  <p>Love and thanks from a desperate author,</p>
  
  <p>Wout</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-03T18:02:58.213Z
Comments.Text: Where are people bragging about SVG in their epub? are there any example epub with SVG that works?
Comments.UserDisplayName: sharp12345
Tags: <ebook-readers><indesign>
Title: How to include SVG in eBooks
UserDisplayName: Wouter Chompff
ThreadText: # How to include SVG in eBooks
  
  (Asked by: username_0 on 2019-08-03)
  
  **How can one add .SVG files to ebooks in a way that is supported by major ereaders?**
  
  I've raked through the entire internet, and I find two things:
  
  1. People bragging about including SVG in their eBook.
  2. An absence of how-to guides.
  
  This is obviously a well-kept secret. I'm making a reflowable ePub in InDesign with at least 200 illustrations, so I'd love to include .SVG.
  
  The only workaround I found was [this weird plugin](https://svg.scand.com/) for Indesign - that doesn't include export support if you don't have Adobe Indesign CS6.
  
  I feel very passionate about this so feel free to shake me down for money or natural payments if you have the answer.
  
  Love and thanks from a desperate author,
  
  Wout
  
  **Tags:** ebook-readers, indesign
  
  > **Comments:**
  > **username_1**: Where are people bragging about SVG in their epub? are there any example epub with SVG that works?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2019-08-04. Score: 2
  
  I don't know a lot about SVG, but I have played around very superficially with svg in ebooks (about a year or two ago). What I found was that although my simple svg worked in one or two epub readers, support on Kindle was very iffy.
  
  If you look at the [Amazon Kindle Publishing Guidelines](https://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf), you will see about half a page on SVG support. It seemed very limiting. That probably accounts for the lack of interest in the topic -- especially because it's just as easy to make a jpg or png.
  
  If there is SVG in an ebook, I'm guessing it is an ebook targeted to one specific reading system. (I suspect that academic publishers would be the one pushing for it most).
  
  As ebooks become more graphics-intensive, ebook size will become a more important consideration, and scalable graphics will finally be important. One crazy thing about KF8 format is that the **max-width** css attribute isn't supported -- making it hard or at least complicated for images to scale in an ebook predictably.
  
  SVG is already supported in major browsers, and it can be frustrating not to see such features supported in ebook reading systems. But there is typically a lag between when something is supported in browsers and when the epub standard requires it -- and when reading systems decide to deploy that.
  
  > **Comments:**
  > **username_0**: Thanks a bunch for your answer. I figured as much, because the internet was quiet on this topic. I made a very graphic intensive ebook, so SVG would have saved my download size, but I guess I'll have to roll with JPG on this one.  
  
  ---
  
  ### Answer by username_3 on 2019-09-12. Score: 1
  
  As far as I can remember InDesign only supports 3 image formats when exporting to epub: jpg, png, and gif. So even if you place the svg files in InDesign they will be converted on export. If you edit the epub after exporting it you could replace the image files with the vectors. Of course, that doesn't do anything to make various e-reader apps recognize .svg
  
  > **Comments:**
  > **username_0**: Thta's right. Only ancient versions of Indesign still allow for SVG export.  
  > **username_3**: I recommend just setting your object export compression to 300dpi and choose gif to maintain transparency. That should be detailed (and small) enough for a good user experience on any device.  
  
  ---
  
  ### Answer by username_4 on 2019-08-19. Score: 1
  
  I'm constantly amused how the Web is "just now discovering" vector formats. HTML has no particular support for it, Word is even worse, and SVG format is just catching on. **But vector has been a staple of desktop publishing since 1986**.
  
  An ebook is analogous to desktop publishing, not making a web page.
  
  The traditional vector graphics format is PostScript. It is the core of Portable Document Format, aka PDF.
  
  Because of that, PostScript format art drops very efficiently into PDF.
  
  While you may make your art in particular platforms like Illustrator or Corel Draw, you should be exporting them in PostScript or some other vector format which your composition software can place. Then, the vector art will embed *as* vector art, won't suffer compression damage, and will look sharp at any zoom.
  
  If your composition software can't handle this competently, then it's time for better composition software. I could do this in Illustrator/PageMaker in 1987 on a computer with 512K RAM and clocked at 7 MHz, so it must surely be possible today.
  
  > **Comments:**
  > **username_0**: Wow, that's awesome. Two issues with this: my Illustrator doesn't seem to have a PostScript export format. Second issue, the program in which I design the ebooks: Indesign - doesn't allow for vector export when creating an ePub.  
  > **username_5**: An ebook is actually a zip file of mostly html documents, css, and a few xml files. So no, it is not like desktop publishing, but is in fact much more like  "the web" but more like a website, not a web page. Inkscape is a better option, as it is stable, free/open source vector graphics editor. That said, ebook readers are the target for ebooks, and those work best with jpg files which can be exported from vector graphics editors (actually svg --> png --> jpg) and then compressed.  
  
  ---
  
  