Feature request #3979

Allow set DPI in "save as image"

Added by Aren Cambre almost 6 years ago. Updated over 1 year ago.

Status:Open Start Date:06/12/2011
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:Future Release - Nice to have
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

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.

History

Updated by Aren Cambre almost 6 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.

Updated by Paolo Cavallini over 5 years ago

  • Category set to 33
  • Pull Request or Patch supplied set to No

Updated by Giovanni Manghi over 5 years ago

  • Target version set to Version 1.7.4

Updated by Giovanni Manghi almost 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Aren Cambre over 4 years ago

  • Priority changed from Normal to High

I'm going to be bold and say that this is more than normal priority. It's really important that a graphical information system be capable of producing good quality graphics.

Updated by Paolo Cavallini over 4 years ago

  • Priority changed from High to Normal

From http://hub.qgis.org/wiki/quantum-gis/Bugreports#Steps :

High - a bug which has a major effect on the usability of a package.

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Aren Cambre almost 4 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/

Updated by Jürgen Fischer almost 3 years ago

  • Category changed from 33 to Map Composer / Printing

Updated by Antonio Locandro over 2 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.

Updated by Nyall Dawson over 2 years ago

  • Category deleted (Map Composer / Printing)

If you're working from a print composer you can set the DPI, and export in high resolution. This request is for a way to specify image size when exporting the map canvas from the main window.

Updated by Giovanni Manghi over 2 years ago

  • Subject changed from Easy high resolution image export to Allow set DPI in "save as image"

Updated by Giovanni Manghi over 2 years ago

Antonio Locandro wrote:

is a shame

qgis development is user driven, if someone will really need this option I guess that could be easily implemented.

Updated by Médéric RIBREUX over 1 year 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 ?

Also available in: Atom