Synfig Project Forum

Forums for Synfig Project
It is currently Fri Aug 22, 2014 10:33 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 80 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Sat Jul 30, 2011 10:04 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 218
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.
svg2sif is now included in Inkscape trunk


Top
 Profile  
 
PostPosted: Fri Aug 05, 2011 7:17 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4765
Location: Spain
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


Top
 Profile  
 
PostPosted: Fri Aug 05, 2011 9:30 pm 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 904
Location: Foshan City, China
Nice! I already used it for a while it works well.

_________________
time flies...


Top
 Profile  
 
PostPosted: Mon Aug 08, 2011 4:57 am 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 904
Location: Foshan City, China
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,
Attachment:
inkscape_sif.png
inkscape_sif.png [ 48.74 KiB | Viewed 15745 times ]



I attached the svg and sif files as well.


Attachments:
animate controllers.svg [7.2 KiB]
Downloaded 175 times
animate controllers.sif [82.42 KiB]
Downloaded 161 times

_________________
time flies...
Top
 Profile  
 
PostPosted: Mon Aug 08, 2011 7:11 pm 
Offline
User avatar

Joined: Sat May 02, 2009 3:38 am
Posts: 387
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!


Top
 Profile  
 
PostPosted: Mon Aug 08, 2011 8:41 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 218
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).


Top
 Profile  
 
PostPosted: Wed Aug 10, 2011 2:44 am 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 218
The width problem is now (hopefully) fixed. Thanks for bringing it up.


Top
 Profile  
 
PostPosted: Wed Aug 10, 2011 3:23 am 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 904
Location: Foshan City, China
nikitakit wrote:
The width problem is now (hopefully) fixed.


Thanks, I will update my installation :)

_________________
time flies...


Top
 Profile  
 
PostPosted: Fri Aug 12, 2011 11:49 am 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 904
Location: Foshan City, China
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.
Attachment:
Screenshot-svg2sif_test.png
Screenshot-svg2sif_test.png [ 87.99 KiB | Viewed 15702 times ]


Attachments:
svg2sif_test.svg [10.5 KiB]
Downloaded 152 times
svg2sif_test.sif [132.25 KiB]
Downloaded 165 times

_________________
time flies...
Top
 Profile  
 
PostPosted: Tue Aug 16, 2011 9:38 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 218
This bug should be fixed now. I've rewritten the path-to-bline code, please tell me if anything new comes up.


Top
 Profile  
 
PostPosted: Tue Aug 23, 2011 8:45 am 
Offline
User avatar

Joined: Sat May 02, 2009 3:38 am
Posts: 387
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.

_________________
Bartimaeus: "One magician demanded I show him an image of the love of his life. I rustled up a mirror."
My website of awesomeness!


Top
 Profile  
 
PostPosted: Tue Aug 23, 2011 2:34 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 218
tushantin wrote:
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.


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.


Top
 Profile  
 
PostPosted: Tue Aug 23, 2011 6:31 pm 
Offline
User avatar

Joined: Sat May 02, 2009 3:38 am
Posts: 387
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!


Top
 Profile  
 
PostPosted: Tue Aug 23, 2011 10:08 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 218
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.


Top
 Profile  
 
PostPosted: Wed Aug 24, 2011 7:21 am 
Offline
User avatar

Joined: Sat May 02, 2009 3:38 am
Posts: 387
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 80 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group