Exporting to PNG with different dpi
The most common way of presenting SVG drawings created using Inkscape is by exporting them to PNG (Portable Network Graphics) format. This recipe will show us how this is accomplished and what to look out for, in particular when it comes to exporting the same drawing size (width and height in absolute units like inches) into a picture with a different dpi value. We will also use two of the images we export here in the following recipe, in order to practice importing of images with different dpi.
How to do it...
The following steps will demonstrate how to export an image to PNG:
1. Choose the Rectangle tool (F4 or R) and create a square. Set its fill to Blue (#0000FF) and apply a diagonal gradient using the Gradient tool (Ctrl + F1 or G). Remove stroke and set it to 450x450 px in size.
2. Switch back to the Selector tool (Space) and set the units temporarily to inches by choosing in instead of px in the drop-down on the Selector toolbar. Notice the size...