SIF output extension to ship in Inkscape 0.49, needs testing

Discuss Synfig related news
nikitakit
Site Admin
Posts: 218
Joined: Mon Feb 16, 2009 5:19 pm

SIF output extension to ship in Inkscape 0.49, needs testing

Postby nikitakit » Sat Jul 30, 2011 10:04 pm

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
Download (.tar.gz) https://github.com/nikitakit/svg2sif/tarball/stable

Github page / Installation Instructions: 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.
Last edited by nikitakit on Tue Nov 29, 2011 4:18 am, edited 2 times in total.
Reason: svg2sif is now included in Inkscape trunk

User avatar
Genete
Site Admin
Posts: 4871
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: SIF exporter extension for Inkscape

Postby Genete » Fri Aug 05, 2011 7:17 pm

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
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

User avatar
jcome
Posts: 933
Joined: Tue Feb 26, 2008 3:33 am
Location: Foshan City, China

Re: SIF exporter extension for Inkscape

Postby jcome » Fri Aug 05, 2011 9:30 pm

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

User avatar
jcome
Posts: 933
Joined: Tue Feb 26, 2008 3:33 am
Location: Foshan City, China

Re: SIF exporter extension for Inkscape

Postby jcome » Mon Aug 08, 2011 4:57 am

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



I attached the svg and sif files as well.
Attachments
animate controllers.svg
(7.2 KiB) Downloaded 189 times
animate controllers.sif
(82.42 KiB) Downloaded 178 times
time flies...

User avatar
tushantin
Posts: 396
Joined: Sat May 02, 2009 3:38 am
Contact:

Re: SIF exporter extension for Inkscape

Postby tushantin » Mon Aug 08, 2011 7:11 pm

Holy Polly! :D 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.
Bartimaeus: "One magician demanded I show him an image of the love of his life. I rustled up a mirror."
My website of awesomeness!

nikitakit
Site Admin
Posts: 218
Joined: Mon Feb 16, 2009 5:19 pm

Re: SIF exporter extension for Inkscape

Postby nikitakit » Mon Aug 08, 2011 8:41 pm

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. 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).

nikitakit
Site Admin
Posts: 218
Joined: Mon Feb 16, 2009 5:19 pm

Re: SIF exporter extension for Inkscape

Postby nikitakit » Wed Aug 10, 2011 2:44 am

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

User avatar
jcome
Posts: 933
Joined: Tue Feb 26, 2008 3:33 am
Location: Foshan City, China

Re: SIF exporter extension for Inkscape

Postby jcome » Wed Aug 10, 2011 3:23 am

nikitakit wrote:The width problem is now (hopefully) fixed.


Thanks, I will update my installation :)
time flies...

User avatar
jcome
Posts: 933
Joined: Tue Feb 26, 2008 3:33 am
Location: Foshan City, China

Re: SIF exporter extension for Inkscape

Postby jcome » Fri Aug 12, 2011 11:49 am

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
Attachments
svg2sif_test.svg
(10.5 KiB) Downloaded 168 times
svg2sif_test.sif
(132.25 KiB) Downloaded 181 times
time flies...

nikitakit
Site Admin
Posts: 218
Joined: Mon Feb 16, 2009 5:19 pm

Re: SIF exporter extension for Inkscape

Postby nikitakit » Tue Aug 16, 2011 9:38 pm

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

User avatar
tushantin
Posts: 396
Joined: Sat May 02, 2009 3:38 am
Contact:

Re: SIF exporter extension for Inkscape

Postby tushantin » Tue Aug 23, 2011 8:45 am

Damn! I keep getting this error:

Code: Select all

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.
Bartimaeus: "One magician demanded I show him an image of the love of his life. I rustled up a mirror."
My website of awesomeness!

nikitakit
Site Admin
Posts: 218
Joined: Mon Feb 16, 2009 5:19 pm

Re: SIF exporter extension for Inkscape

Postby nikitakit » Tue Aug 23, 2011 2:34 pm

tushantin wrote:Damn! I keep getting this error:

Code: Select all

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.


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.

User avatar
tushantin
Posts: 396
Joined: Sat May 02, 2009 3:38 am
Contact:

Re: SIF exporter extension for Inkscape

Postby tushantin » Tue Aug 23, 2011 6:31 pm

Okay, but how do I send it to you? XD
Bartimaeus: "One magician demanded I show him an image of the love of his life. I rustled up a mirror."
My website of awesomeness!

nikitakit
Site Admin
Posts: 218
Joined: Mon Feb 16, 2009 5:19 pm

Re: SIF exporter extension for Inkscape

Postby nikitakit » Tue Aug 23, 2011 10:08 pm

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.

User avatar
tushantin
Posts: 396
Joined: Sat May 02, 2009 3:38 am
Contact:

Re: SIF exporter extension for Inkscape

Postby tushantin » Wed Aug 24, 2011 7:21 am

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. :(
http://www.box.net/shared/53z20imbkku4doe1qbdx

BTW, Synfig's importing of SVG directly isn't accurate either; blines go haywire and elements go missing. @_@
Bartimaeus: "One magician demanded I show him an image of the love of his life. I rustled up a mirror."
My website of awesomeness!


Return to “Synfig news discussion”

Who is online

Users browsing this forum: No registered users and 2 guests

cron