inkexport is a batch export tool for iOS developers, using Inkscape. To add a few information for your SVG, you can export all PNG files, including Retina images (@2x), at one time.
- Run Inkscape, and create SVG file.
- Add
export
layer for export. - Add rectangles to
export
layer as export area. - Select a rectangle, and choose
Object > Object Properties
. - Input an export file name to
Label
field, except file extension. - Press
Apply
button. - Finally, set
Opacity
ofexport
layer to0%
. - Save your SVG file.
Open a terminal, and run the command as follows.
$ inkexport -f [SVG file] -o [output dir]