Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow set DPI in "save as image" #13975

Closed
qgib opened this issue Jun 12, 2011 · 17 comments
Closed

Allow set DPI in "save as image" #13975

qgib opened this issue Jun 12, 2011 · 17 comments

Comments

@qgib
Copy link
Contributor

qgib commented Jun 12, 2011

Author Name: Aren Cambre (Aren Cambre)
Original Redmine Issue: 3979

Redmine category:unknown


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.

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2011

Author Name: Aren Cambre (Aren Cambre)


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.

@qgib
Copy link
Contributor Author

qgib commented Dec 9, 2011

Author Name: Paolo Cavallini (@pcav)


  • category_id was configured as 33
  • pull_request_patch_supplied was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was configured as Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Apr 15, 2012

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.4 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Sep 30, 2012

Author Name: Aren Cambre (Aren Cambre)


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.


  • priority_id was changed from Normal to High

@qgib
Copy link
Contributor Author

qgib commented Sep 30, 2012

Author Name: Paolo Cavallini (@pcav)


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

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


  • priority_id was changed from High to Normal

@qgib
Copy link
Contributor Author

qgib commented Oct 6, 2012

Author Name: Pirmin Kalberer (Pirmin Kalberer)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Nice to have

@qgib
Copy link
Contributor Author

qgib commented Jun 2, 2013

Author Name: Aren Cambre (Aren Cambre)


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/

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2014

Author Name: Jürgen Fischer (@jef-n)


  • category_id was changed from 33 to Map Composer/Printing

@qgib
Copy link
Contributor Author

qgib commented Jul 1, 2014

Author Name: Antonio Locandro (Antonio Locandro)


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.

@qgib
Copy link
Contributor Author

qgib commented Jul 1, 2014

Author Name: Nyall Dawson (@nyalldawson)


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.


  • category_id removed Map Composer/Printing

@qgib
Copy link
Contributor Author

qgib commented Jul 2, 2014

Author Name: Giovanni Manghi (@gioman)


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

@qgib
Copy link
Contributor Author

qgib commented Jul 2, 2014

Author Name: Giovanni Manghi (@gioman)


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.

@qgib
Copy link
Contributor Author

qgib commented Dec 3, 2015

Author Name: Médéric RIBREUX (Médéric RIBREUX)


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 ?

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Unknown

@qgib
Copy link
Contributor Author

qgib commented Mar 11, 2018

Author Name: Salvatore Larosa (@slarosa)


  • status_id was changed from Open to Closed
  • description was changed from 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. to 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.

  • resolution was changed from to fixed/implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant