Answers.Body: <p>Couldn't you just do it manually? Unzip the epub,  use a graphics program to convert the SVG files to png or jpg, change the HTML references and the file references in the package.opf file. Then zip up, rename the .zip file to .epub, validate and then you're done.</p>
  <p>I know of no script or utility to do the conversions, but it can't be hard.</p>
  <p>By the way, I inserted my first svg graphic in a kindle-bound epub, and everything rendered no problem. I honestly have no idea whether Adobe or Google Play reader supports it. Will report back in a few days with the results of that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-31T06:22:14.587Z
Answers.Text: It is not feasible to do this manually because there are about 2500 SVG figures within the EPUB file in question.
Answers.UserDisplayName: Flux
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-31T06:00:38.313Z
Answers.LastActivityDate: 2022-01-31T06:00:38.313Z
Answers.UserDisplayName: idiotprogrammer
Body: <p>Is there a way to convert all of the SVG images in an EPUB file into PNG images? I want to do this because few EPUB readers have full support for SVG (most readers only implement a subset of SVG).</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-06-19T14:58:44.090Z
Comments.Text: Relevant: https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-imagemagick
Comments.UserDisplayName: beaker
Tags: <epub><conversion><svg>
Title: How to convert all SVG images to PNG images in an EPUB file
UserDisplayName: Flux
ThreadText: # How to convert all SVG images to PNG images in an EPUB file
  
  (Asked by: username_0 on 2022-01-31)
  
  Is there a way to convert all of the SVG images in an EPUB file into PNG images? I want to do this because few EPUB readers have full support for SVG (most readers only implement a subset of SVG).
  
  **Tags:** epub, conversion, svg
  
  > **Comments:**
  > **username_1**: Relevant: https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-imagemagick  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-01-31. Score: 0
  
  Couldn't you just do it manually? Unzip the epub, use a graphics program to convert the SVG files to png or jpg, change the HTML references and the file references in the package.opf file. Then zip up, rename the .zip file to .epub, validate and then you're done.
  
  I know of no script or utility to do the conversions, but it can't be hard.
  
  By the way, I inserted my first svg graphic in a kindle-bound epub, and everything rendered no problem. I honestly have no idea whether Adobe or Google Play reader supports it. Will report back in a few days with the results of that.
  
  > **Comments:**
  > **username_0**: It is not feasible to do this manually because there are about 2500 SVG figures within the EPUB file in question.  
  
  ---
  
  