I am not sure where I should ask: here or on Inkscape forums, but here I, at least, registered
So, my problem is that if I trace a bitmap work in Inkscape and then export it to Synfig as sif file, it’s somehow always bigger than initial raster work. I can, of course, group exported layer and scale it down, but it’s a clumsy solution which require me to mess with the scale parameter to make it fit the raster work.
Here’s what you can do to reproduce it:
Draw a black circle and save it as png.
Open it in Inkscape.
Trace bitmap (Path -> Trace bitmap…)
You now got a vector layer which is the same size as your raster work. Save it to sif format.
In Synfig, import that sif file and png image.
Now you can see a difference in sizes.
How to prevent this? I want my region layer to be the same size as raster one.
In Synfig, in the preferences panel, adjust to use pixel units. There is an option to automatically resize the image to canvas
In Inkscape, verify your artwork doesn’t have transformation tags in the XML editor… perhaps I’m talking about something more advanced
For raster images: I think that Synfig recognize that all images have 72 dpi, but Inkscape exports the images by default to 90dpi, so if you have a 100x100 px at 90 dpi then in 72 dpi the image will have the size of 72/90*100 =80 px … in theory.
Bingo! That’s the actual problem, GIMP and Synfig uses 72 DPI and Inkscape’s 90 DPI. The worst thing is that 90 DPI is hard coded in Inkscape and you can’t change it when exporting to sif format.
So here’s the solution I came up with:
When you’ve traced a bitmap and have a vector layer, go to Object -> Transform… -> Scale.
Choose ‘px’ type instead of ‘%’.
Set ‘Width’ and ‘Height’ to the real resolution of your raster work.
Click ‘Apply’ and save the work as sif file.
Now if you import the original raster and exported vector work in Synfig they’ll fit almost perfectly.