2

I'm having trouble exporting a map from QGIS to an image on Linux. The exported image has much stronger color contrast than inside QGIS. This occurs both on PNG and TIFF exports.

I exported by Project > Export/Import > Export Map To Image.

enter image description here

On the left is the exported TIFF (PNG looks the same). On the right is the map in QGIS. Notice how much darker some of the green areas are on the left image.

Is this a known issue? Is there a better way to export an image from QGIS?

EDIT: After playing around with this a while longer, it seems that there is a relationship between the size of the exported image and the degree of constrast/darkening. If I export with only 3k pixels to a side, the image looks like it does in QGIS. As I increase this, it starts to change more and more.

  • By default QGIS applies contrast enhancement that is based on the histogram. From the image properties - Symbology - Band Rendering - Contrast enhancement you can select "No enhancement" and then you should see the image as flat in QGIS than with another viewer. – user30184 Jan 15 at 23:30
  • All of my layers are rendered as either singleband pseudocolor or as hillshade. In the Symbology - Band Rendering menu these don't appear to have a contrast enhancement option. – Brian Jan 16 at 0:09
  • One more note: Export to PDF works correctly. The colors in QGIS are replicated as expected. – Brian Jan 16 at 0:29
  • There are min/max settings for pseudocolor as well. Test data would be appreciated. – user30184 Jan 16 at 1:08
  • The data I'm using for this totals about 5GB right now unfortunately. I did just update the question though. The issue seems related to the size of the exported photo. – Brian Jan 16 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.