Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to convert a gif file to svg using command line inkscape? I would like to convert the gif to a "real" svg but bot just embed the gif into the svg. Or any other command line tool to do that?

Thanks.

share|improve this question

migrated from stackoverflow.com Jan 23 '13 at 17:03

This question came from our site for professional and enthusiast programmers.

2 Answers 2

The GIF format is a raster format (it gives the color/brigtness pixel by pixel), SVG is a vector format (it describes lines by mathematical curves, and specifies to fill certain regions with color). To transform GIF to SVG you have to detect the lines in the figure, and work from there. Not impossible, but hard to do (and probably always with much human guidance).

share|improve this answer

Yes, there is ... using trace bit map. It is not perfect, but sometimes works. But this is really not a programming questions...

To do this, click on the Path menu and choose Trace Bitmap.

on the command line, or server side:

Check the original potrace program. Notice: this could be very demanding to your server.

share|improve this answer
    
Thank you for the reply. is there any way to do that through command line? Because I am doing it on web server. –  CharlesDou Jan 23 '13 at 16:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.