# SIF output extension to ship in Inkscape 0.49, needs testing

**URL:** https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526
**Category:** Synfig news discussion
**Created:** [July 31, 2011, 1:04am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526 "2011-07-31T01:04:23Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [July 31, 2011, 1:04am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/1 "2011-07-31T01:04:23Z")

</div>

The SIF output extension is now part of Inkscape’s development repository. It adds a “.sif” option to Inkscape’s “Save As” Dialog. Please help test it to make sure that the version that ships in Inkscape 0.49 runs smoothly.

For stable versions of Inkscape, you can download the code and read the installation instructions on github:  
Download (.zip) [https://github.com/nikitakit/svg2sif/zipball/stable](https://github.com/nikitakit/svg2sif/zipball/stable)  
Download (.tar.gz) [https://github.com/nikitakit/svg2sif/tarball/stable](https://github.com/nikitakit/svg2sif/tarball/stable)

Github page / Installation Instructions: [https://github.com/nikitakit/svg2sif](https://github.com/nikitakit/svg2sif)

(If you’re using Inkscape nightly builds or building Inkscape trunk yourself the extension should be installed automatically.)

Inkscape writes out SIF files within the following constraints:

- It’s designed to work with Inkscape-created SVG files. SVG files loaded from other programs may not work as well
- Blurs don’t transfer over one-to-one. The resulting SIF file may need to be hand-edited to make the blurs stronger or weaker
- SVG filters are ignored. They do not port easily to Synfig, and some can’t be converted at all.
- Radial gradients with focus not at the center are not allowed. The Synfig renderer does not support them.
- Dashed outlines, markers, and patterns are ignored. If you need them, post a feature request.

All SVG files falling within these constraints are fair game – if they don’t work, leave a comment here and I’ll try to fix the problem.

If everything works as expected, please post a reply as well. I would like to know how many people have tested it and what setups they use.

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 5, 2011, 10:17pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/2 "2011-08-05T22:17:09Z")

</div>

This is great nikitakit!. I will test it as soon as possible. It seems to be easier to maintain than the current svg import module.  
Cheers!  
-G

---

<div class="post-metadata">

### Author: ![jcome](https://forums.synfig.org/user_avatar/forums.synfig.org/jcome/32/3512_2.png) [@jcome](https://forums.synfig.org/u/jcome)
#### Post date: [August 6, 2011, 12:30am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/3 "2011-08-06T00:30:31Z")

</div>

Nice! I already used it for a while it works well.

---

<div class="post-metadata">

### Author: ![jcome](https://forums.synfig.org/user_avatar/forums.synfig.org/jcome/32/3512_2.png) [@jcome](https://forums.synfig.org/u/jcome)
#### Post date: [August 8, 2011, 7:57am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/4 "2011-08-08T07:57:11Z")

</div>

Hi nikitakit,

Thanks for your effort, it helps a lot on my icons design jobs.

and I found there is an issue: some of the line width is incorrect after converted as shown in the attached,

 ![inkscape_sif.png](https://forums.synfig.org/uploads/default/original/2X/5/56023b10b223e1e704b58235989db8785905992f.png)

I attached the svg and sif files as well.  
 ![animate controllers.svg](https://forums.synfig.org/uploads/default/original/2X/a/a19d2100dc325ec088b6d1042793f962e9bc4c29.svg)  
[animate controllers.sif](https://forums.synfig.org/uploads/default/original/2X/0/0849a566475e582874511719c4438ba787aa3503.sif) (82.4 KB)

---

<div class="post-metadata">

### Author: ![tushantin](https://forums.synfig.org/user_avatar/forums.synfig.org/tushantin/32/43_2.png) [@tushantin](https://forums.synfig.org/u/tushantin)
#### Post date: [August 8, 2011, 10:11pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/5 "2011-08-08T22:11:26Z")

</div>

Holy Polly! 😃 This is rad!

A small favor: once this extension reaches stable, we ought to make an “Extension page” somewhere (though this is not really a Synfig extension). Is the Inkscape community willing to host this? I ask because it’d be cool to have an easy-to-locate place for treasures like these.

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 8, 2011, 11:41pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/6 "2011-08-08T23:41:38Z")

</div>

Thank you everyone for your comments!

jcome: I’ve figured out what’s happening with the stroke width, I’ll fix it as soon as I can. (I forgot to take transform attributes into account for the stroke width)

tushatin: The only extension repository Inkscape has right now is a [wiki page](http://wiki.inkscape.org/wiki/index.php/Extension_repository). It’s a great reference, but not very user-friendly. I think the Inkscape forums would be the best place to advertise it on the Inkscape end, and I’ll update the Synfig wiki once this extension becomes stable. (I’ll need all of your help determining when that is, though).

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 10, 2011, 5:44am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/7 "2011-08-10T05:44:45Z")

</div>

The width problem is now (hopefully) fixed. Thanks for bringing it up.

---

<div class="post-metadata">

### Author: ![jcome](https://forums.synfig.org/user_avatar/forums.synfig.org/jcome/32/3512_2.png) [@jcome](https://forums.synfig.org/u/jcome)
#### Post date: [August 10, 2011, 6:23am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/8 "2011-08-10T06:23:02Z")

</div>

> [@nikitakit](#):
>
> The width problem is now (hopefully) fixed.

Thanks, I will update my installation 🙂

---

<div class="post-metadata">

### Author: ![jcome](https://forums.synfig.org/user_avatar/forums.synfig.org/jcome/32/3512_2.png) [@jcome](https://forums.synfig.org/u/jcome)
#### Post date: [August 12, 2011, 2:49pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/9 "2011-08-12T14:49:00Z")

</div>

Thanks, the line width is correct now.

I found some issue with new version (the prev version has the same issue):  
after converted to sif  
1, the geometry becomes open  
2, there is one unexpected vertex as shown in attached screenshot.

 ![Screenshot-svg2sif_test.png](https://forums.synfig.org/uploads/default/original/2X/1/14bf289b84d3e363654fb3dc8d87ab226c81377f.png)  
 ![svg2sif_test.svg](https://forums.synfig.org/uploads/default/original/2X/c/cf2e2cf92d2739a359c7508fa6360c704264bc31.svg)  
[svg2sif\_test.sif](https://forums.synfig.org/uploads/default/original/2X/2/248d5b5a252886bdad11f0f6cf76d81878ef6db7.sif) (132 KB)

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 17, 2011, 12:38am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/10 "2011-08-17T00:38:42Z")

</div>

This bug should be fixed now. I’ve rewritten the path-to-bline code, please tell me if anything new comes up.

---

<div class="post-metadata">

### Author: ![tushantin](https://forums.synfig.org/user_avatar/forums.synfig.org/tushantin/32/43_2.png) [@tushantin](https://forums.synfig.org/u/tushantin)
#### Post date: [August 23, 2011, 11:45am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/11 "2011-08-23T11:45:34Z")

</div>

Damn! I keep getting this error:

[code]Unable to load “/media/Programs/Documents/My Pictures/Temp crap and collection/Anim/Polar Detective/Conept Art/Characters/Elves/Elf1.sif”:

Document not well-formed.[/code]

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 23, 2011, 5:34pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/12 "2011-08-23T17:34:31Z")

</div>

> [@tushantin](#):
>
> Damn! I keep getting this error:
> 
> [code]Unable to load “/media/Programs/Documents/My Pictures/Temp crap and collection/Anim/Polar Detective/Conept Art/Characters/Elves/Elf1.sif”:
> 
> Document not well-formed.[/code]

Sorry to hear that. Can you post the SVG file (or send it to me)? I’ll try to figure out what the problem is.

---

<div class="post-metadata">

### Author: ![tushantin](https://forums.synfig.org/user_avatar/forums.synfig.org/tushantin/32/43_2.png) [@tushantin](https://forums.synfig.org/u/tushantin)
#### Post date: [August 23, 2011, 9:31pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/13 "2011-08-23T21:31:09Z")

</div>

Okay, but how do I send it to you? XD

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 24, 2011, 1:08am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/14 "2011-08-24T01:08:04Z")

</div>

I’m fine with any way you can reach me. If it’s a private file you can send me an email, if it’s not private you can attach it here. (There should me an “email” button in my profile.) Private messages here on the forums might allow attachments as well.

---

<div class="post-metadata">

### Author: ![tushantin](https://forums.synfig.org/user_avatar/forums.synfig.org/tushantin/32/43_2.png) [@tushantin](https://forums.synfig.org/u/tushantin)
#### Post date: [August 24, 2011, 10:21am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/15 "2011-08-24T10:21:53Z")

</div>

The reason I asked was because I couldn’t find an email address in your profile, nor does this forum allow private messaging. Ah, hell, here goes nothing. ☹  
[box.net/shared/53z20imbkku4doe1qbdx](http://www.box.net/shared/53z20imbkku4doe1qbdx)

BTW, Synfig’s importing of SVG directly isn’t accurate either; blines go haywire and elements go missing. @\_@

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 24, 2011, 10:52am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/16 "2011-08-24T10:52:10Z")

</div>

Only forum moderators and administrators can see the emails. Anyway it is very easy to find nikitakit’s email in any of his code commits. ([synfig.git.sourceforge.net/git/g … ;a=summary](http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=summary))  
-G

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 24, 2011, 3:19pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/17 "2011-08-24T15:19:38Z")

</div>

> [@Genete](#):
>
> Only forum moderators and administrators can see the emails.

Ah, good to know that.

My email is in fact public knowledge (from the git repo), but for some reason I still feel uncomfortable posting it on public forums. It doesn’t really make sense. I need to think about it.

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [August 26, 2011, 10:34pm UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/18 "2011-08-26T22:34:34Z")

</div>

Tushantin: the elf was a quite a good SVG file for testing purposes. I found and fixed three different bugs the converter had.

You can download the latest version off github: [https://github.com/nikitakit/svg2sif/zipball/master](https://github.com/nikitakit/svg2sif/zipball/master). (The download links on the first post point to “stable”, which is a previous version)

---

<div class="post-metadata">

### Author: ![nikitakit](https://forums.synfig.org/user_avatar/forums.synfig.org/nikitakit/32/3541_2.png) [@nikitakit](https://forums.synfig.org/u/nikitakit)
#### Post date: [September 1, 2011, 6:55am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/19 "2011-09-01T06:55:57Z")

</div>

A new “stable” version of svg2sif is out. It’s mostly bugfixes - there aren’t any new features.

I’ve been running automated tests on the openclipart collection of SVG files, and that’s turned up quite a few bugs. The only major problem remaining is the way that multiple subpaths are treated. I’ll try to come up with a better algorithm for that in the near future.

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [September 1, 2011, 6:57am UTC](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526/20 "2011-09-01T06:57:25Z")

</div>

My full support is there!  
-G

[Next page](https://forums.synfig.org/t/sif-output-extension-to-ship-in-inkscape-0-49-needs-testing/1526.md?page=2)
