Bug report #19225

Grayscale is not exporting well to PDF

Added by Alexandre Neto over 5 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.1(master) Regression?:No
Operating System:Linux - ubuntu 16.04 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27054

Description

This is a very strange issue I found on QGIS 3.0 and also on QGIS 3.1 (master) on Linux. For some reason, certain tones of gray are not exported correctly to PDF.

They work well when converted to JPEG or PNG, but not in PDF.

Look at the top corner squares and top elements of the legend of the samples I send.

It did not happen with other color ramps, for example, a red to white ramp.

There is also a zip with project and data for trying to replicate.

test_gray_scale.zip (13.1 KB) Alexandre Neto, 2018-06-19 06:05 PM

testing grayscale_master.pdf - Project + Data (10.1 KB) Alexandre Neto, 2018-06-19 06:05 PM

testing grayscale.jpeg (26.5 KB) Alexandre Neto, 2018-06-19 06:05 PM

Also available in: Atom PDF