Is there an easy way to convert a batch of EPS files to SVG format, using ImageMagick or something else?

I have thousands of vector files in EPS format and I need to convert them to SVG.

  • 2
    ImageMagick isn't really meant for converting vector formats, it's possible but it will convert to an intermediary raster image which isn't good (see imagemagick.org/Usage/formats/#vector) – Cai Dec 12 '16 at 1:11
  • Agreed. The sort of obvious answer is the use a Photoshop action to accomplish this task. – ErickP Dec 12 '16 at 1:14
  • 3
    Converting from EPS to SVG format may give you what you need – Cai Dec 12 '16 at 1:15

Scribus is an Open Source software. Use File/Open... to open the EPS file and then File/Export/As SVG... to save the result as an SVG file. Unlike ImageMagick, it will keep the vector format.

Scribus has scripting capabilities and if I get this page right, the function name for exporting is ImageExport() but there's no example on how to use it.

Update: in Scribus 1.4.6, there's no export functionality for SVG via ImageExport(). I did

svg = scribus.ImageExport()

which only gives me the types 'bmp', 'ico', 'jpeg', 'jpg', 'png', 'ppm', 'tif', 'tiff', 'xbm' and 'xpm'.

Scribus 1.5.3 adds 'cur', 'dds', 'icns', 'pbm', 'pgm', 'wbmp and 'webp', but still has no SVG export.

I have opened a feature request.


Since I've faced this issue many times, I've ended with a service based solution. Normally I use the service from https://cloudconvert.com/ but recently I noticed they also offers a cli which can be invoked to convert any kind of file that one can see on their site.

Just register, obtain a free (just be sure of the free limitations) API Key, install their cli as described here and then (optional) create this simple script for a drag&drop conversion:

'echo off
set CLOUDCONVERT_API_KEY=[your_api_key]
cloudconvert -f svg %*

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy