Converting large SVG to PNG file

0

1

So I have a 16mb SVG file with about 30,000 nodes and I've been trying to convert it to a 10,000x10,000 png image. I tried a lot of stuff and the closest I got was with inkscape, but it got some weird error halfway through the command and only rendered half the image. Does anyone know the best way to do this?

user209128

Posted 2013-03-21T05:27:17.477

Reputation: 3

What error message did you get? There is no way determine what steps might solve the problem (other application or otherwise) without knowing what problem inkscape encountered. – Paul – 2013-03-21T05:33:18.900

Well heres what happens when I try it: http://puu.sh/2lgCO

– user209128 – 2013-03-21T05:34:18.077

(note I removed your request for a product recommendation to avoid it being closed as off topic) – Paul – 2013-03-21T05:34:27.467

What version are you running? Older versions got this issue through memory usage, but given the size of the output, it may be that you are just coming up against a lack of memory. – Paul – 2013-03-21T05:37:07.607

Its version 0.48.4 I think, I downloaded it like a hour ago. By the way I have 16gb of 1688mhz ram but apparently its not using that at all, might there be a way to tell inkscape to use more ram? – user209128 – 2013-03-21T05:38:40.850

Answers

2

Imagemagick is a dedicated command line tool for converting and manipulating images, so may product better results:

convert -density 1200 -resize 10000x10000 your.svg your.png

You may need to change the density command to get optimal results

Paul

Posted 2013-03-21T05:27:17.477

Reputation: 52 173

Well I tried this and it worked except the resulting image is like really fuzzy and low-res. Its also 208mb which is a bit big. – user209128 – 2013-03-21T05:55:52.740

@user209128 It can take a bit of trial and error to get good results, try the change above. – Paul – 2013-03-21T06:01:15.340