Draw a rectangle/circle
- Select either the button to create a rectangle or a circle
- Click on a color at the bottom for the fill color
- Find a color for the stroke (the edges) and right-click > Set stroke
Set stroke (outline) width
Right-click the object > Fill and Stroke > Stroke style > Width
Get the size of an object/resize it
- Click the Select button
- The object’s dimensions will be at the top of the screen. They can be changed to resize it.
- To lock the aspect ratio when resizing, click the lock at the top of the screen or hold down the Ctrl key and resize the image using the arrows around it.
Group objects so they can be moved together
- Drag a box around the objects to group
- Object > Group
Center objects within the page
- First, resize the page as desired File > Document Properties > Custom size
- Drag a box around the objects to center
- Object > Align and Distribute
- Check Treat selection as group
- Click Center on vertical axis and/or Center on horizontal axis
Resize document to fit image
File > Document Properties > expand Resize page to content > Resize page to drawing or selection
Change the background transparency
-
File > Document Properties > Page
-
Click to the right of Background
-
In the RGB tab change the alpha channel (A) as desired
- 0: fully transparent
- 1: fully opaque
Convert an SVG to a PNG file
http://stackoverflow.com/a/14174624/399105
inkscape -z -e test.png -w 1024 -h 1024 test.svg
Clean up/optimize SVG files
https://jakearchibald.github.io/svgomg/
Helpful options:
- Always:
- Enable Multipass
- For better display on websites:
- Enable Prefer viewBox to width/height
- If you wish to be able to edit the SVG later:
- Enable Prettify code
- Disable Merge paths