Feature request #3979

Allow set DPI in "save as image"

Added by Aren Cambre over 13 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:13975

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

#1 Updated by Aren Cambre over 13 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.

#2 Updated by Paolo Cavallini almost 13 years ago

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

#3 Updated by Giovanni Manghi almost 13 years ago

  • Target version set to Version 1.7.4

#4 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#5 Updated by Aren Cambre about 12 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.

#6 Updated by Paolo Cavallini about 12 years ago

  • Priority changed from High to Normal

From https://issues.qgis.org/wiki/quantum-gis/Bugreports#Steps :

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

#7 Updated by Pirmin Kalberer about 12 years ago

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

#8 Updated by Aren Cambre over 11 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/

#9 Updated by Jürgen Fischer over 10 years ago

  • Category changed from 33 to Map Composer/Printing

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

#11 Updated by Nyall Dawson over 10 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.

#12 Updated by Giovanni Manghi over 10 years ago

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

#13 Updated by Giovanni Manghi over 10 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.

#14 Updated by Médéric RIBREUX almost 9 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 ?

#15 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#16 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

#17 Updated by Salvatore Larosa over 6 years ago

  • Status changed from Open to Closed
  • Description updated (diff)
  • Resolution set to fixed/implemented

Also available in: Atom PDF