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?
Answer
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.
In QGIS 3 it's possible to control the extent and resolution using Export Map to Image...
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.
eg.
C:\Users\MyUser\QGis_Projects>qgis --snapshot italy.png --width 1500 --height 1000 --project italy.qgs
No comments:
Post a Comment