Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am exporting a QGIS map to an image format. I would like to have control over the output settings of the image (dpi), as currently it is only exporting the images at 96 dpi. Does anyone know if this is possible?

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

Currently it's not possible to adjust the resolution of an output image using "Save as Image".

To create high-resolution output, you have to use Print Composer.


There is also a way to get a high-resolution image with world file: With QGIS from command line you have the option to create PNGs in any size including world files.

Available options are:

[--snapshot filename] emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height] height of snapshot to emit
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax] set initial map extent

You have to prepare your project first and then create a snapshot.


C:\Users\MyUser\QGis_Projects>qgis --snapshot italy.png --width 1500 --height 1000 --project italy.qgs
share|improve this answer
Thanks for answering. This way will work fine for what I need. Just a shame as it doesn't export a world file this way. –  James S Nov 22 '10 at 10:50
I have googlemap as an additional layer in my project file. Using the commandline options above, I can render the other layers but not the googlemap layer. It doesn't cache the googlemap. I didn't test this for other WMSes. –  maning Jan 11 '11 at 8:35
@maning: You might want to post a bug report on trac.osgeo.org/qgis. –  underdark Jan 11 '11 at 9:24
this is known problem, unfortunately, 3rd party plugins are not maintained in the core. I will try to contact the plugin author. –  maning Jan 11 '11 at 11:36
I have trouble with Print Composer and a plug-in (RT SQL Layer). Is it a common problem? (in particular, labels are completely out of control) –  Antonin Jul 13 '12 at 15:57
show 4 more comments

The command snapshot only works if you use a width/height values that are lower than the screen resolution (display). If not, QGIS adds a blank space to make a higher resolution image. Am I using the command properly? Try to use, for example, --height 4096 --width 4096.

share|improve this answer
Welcome to GIS SE! Because you say "Am I using the command properly?" I am left wondering whether you are asking another question, just answering this question or trying to make a comment. Would you perhaps be able to edit your answer to make that clearer, please? –  PolyGeo Jul 17 '13 at 10:29
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.