Feature request #3979
Allow set DPI in "save as image"
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Easy fix?:||No||Copied to github as #:||13975|
Please provide a simple, high resolution image export. Our only choices appear to be the File > Save as Image, which has no options, or the Print Composer, which takes several steps and is really designed for creating a hardcopy print.
It would be nice to just have a way to do something like File > Save as Image, but be able to choose a bounding rectangle for the export and specify certain export properties, like resolution or DPI, image format, etc.
#1 Updated by Aren Cambre over 9 years ago
This is the only way I know to do it now: http://underdark.wordpress.com/2010/11/30/creating-high-resolution-images-using-qgis/
This way seems to produce mediocre quality images.
#6 Updated by Paolo Cavallini about 8 years ago
- Priority changed from High to Normal
High - a bug which has a major effect on the usability of a package.
#8 Updated by Aren Cambre over 7 years ago
It's currently 8 not-so-intuitive steps using the Print Composer: http://arencambre.com/blog/2013/06/02/getting-high-quality-graphics-out-of-qgis/
#10 Updated by Antonio Locandro over 6 years ago
I would have to agree with Aren on this, I had a client complain how the image resolution was just sub optimal. I spend some time investigating the issue until I came to this issue which references a blog post "output size cannot be specified directly. It simply saves the currently visible map. Most of the time this resolution will not be satisfactory."
I believe with latest improvements in Print Composer is a shame this is still an issue and that I can't set the DPI as in other COTS.
#14 Updated by Médéric RIBREUX almost 5 years ago
Hello, bug triage...
still present in QGIS 2.13. Some hints:
- there is QgisApp::saveMapAsImage method which opens the QFileDialog...
- ...and then launch QgsMapCanvas::SaveAsImage
If a QPixmap is passed as an argument to QgsMapCanvas::SaveAsImage, the saved file gets the resolution of the QPixmap. So perhaps we need to modify QGisApp::saveMapAsImage to ask for a width/height or DPI, compute a QPixmap and use it for QgsMapCanvas::SaveAsImage ? Or is there something else that we can try ?