Extends the functionality of /Export Path by allowing for the specification of attribute values (fill,stroke,etc) by encoding these into the path name.
Export path values as SVG file. Script assumes that the path name is an encoding of SVG attributes.
These are encoded using:
_[2 letter code][value]_ where 2 letter code is one of:
The value can not contain an underscore and exact values for attributes can be obtained
from the SVG Specifications: http://www.w3.org/TR/SVG
For example:
_fcwhite_scblack_tppolyline_slbutt_sjmiter_nmexample_
would decode to:
<polyline points="..." fill="white" stroke="black"
stroke-linejoin="miter" stroke-linecap="butt"
id="example"/>
Loading the resultant SVG file is only possible if you have SVG support
compiled in, but you can export SVG using this script.
Attachment | Size |
---|---|
example-xcf.zip | 14.47 KB |
svg-path-export.scm | 21.47 KB |
Comments
Struggling with SVG export
The output browser seems to only allow the selection of existing files.
Error: ( : 1) open-input-file: needs 1 argument(s)
seems to be the only possible outcome when trying to export SVG images from GIMP with this plugin
Where am I going wrong? What am I not doing?
If some digital angel can swoop down and solve this I would so so grateful as I need this tool to work badly...
ERROR:( : 1) open-input-file: needs 1 argument(s)
I have the same issue, any help, any one?
Where’s the download button?
Where’s the download button?
Look under "Attachment"
Look under "Attachment" and you'll see two links:
example-xcf.zip
svg-path-export.scm
Right click the link svg-path-export.scm and choose "Save Target As" or "Save Link As", then browse to your User .gimp-2.6/scripts folder and save it. If GIMP is open, you'll need to go to Filters - Script-Fu - Refresh Scripts to activate the new .scm file.
You'll find it under Script-Fu - Utils - SVG Export on the GIMP menu bar.