O'Reilly logo

Inkscape 0.48 Illustrator's Cookbook by Mihaela Jurković, Rigel Di Scala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required