I'm struggling to convert a bunch of images from SVG to PDF/PNG using imagemagick, though I haven't ever had an issue using Imagemagick with other files. It appears that IM either hangs or just takes an excruciatingly long time.
The command I'm using is pretty simple:
convert -background none in.svg out.pdf
Here's version info if thats useful (on OSX, High Sierra):
Version: ImageMagick 6.9.9-26 Q16 x86_64 2018-03-27 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr png ps raw tiff webp x xml zlib
The images are the output of a web rendering tool, and an example can be found here (couldn't figure out a better way to share):
https://drive.google.com/open?id=1zypR9KsR4oskvgRQubDAKIVHXlCFmTz9
I've seen other threads which suggest that ImageMagick resulting in slow conversions of images from SVG to other formats can be due to image sizes etc, but these are only ~30kb (output of identify
: SVG 978x648 978x648+0+0 16-bit sRGB 26333B 0.000u 0:03.460)
(Oddly, I get no output from identify
until I Ctrl-C
the process, then it prints).
There must be something 'wrong' with the files, but as far as I can tell they're valid SVGs, the images can be viewed without an issue etc etc. I'm not sure what I'm missing.