Feature request #344

DPI is not stored in the output PNG

Added by Redmine Admin over 17 years ago. Updated over 14 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:-
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:10403

Description

Although I specify 300 DPI in map composer, after exporting the map to PNG the declared DPI is not preserved. I have to set it manually eg. in GIMP.

Maciek

Screenshot.png (80.5 KB) Giovanni Manghi, 2009-07-13 06:10 AM

History

#1 Updated by Gavin Macaulay - over 17 years ago

Qgis uses a Qt library to write png's, and that library doesn't support embedding a DPI value into the png file. I note that gimp can embed such a value, so there may well be a formal or informal way to do it, but it's unlikely that we'll get around to doing that soon. None of the many other image viewers or editors that I viewed such a png with picked up the dpi set by gimp.

I'll move this to an enhancement against 0.9

#2 Updated by Paolo Cavallini over 14 years ago

Does this still holds true with Qt 4.5?

#3 Updated by Giovanni Manghi over 14 years ago

Seems to me that this has been fixed. See the screenshot. Qgis 1.2 from trunk under Ubuntu 9.04

Please try again and leave feedback.

#4 Updated by Giovanni Manghi over 14 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Seems that the problem has been solved, closing, but reopen if necessary.

Also available in: Atom PDF