qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.51k stars 2.99k forks source link

Exporting print layout does not preserve layer blending mode. #58810

Closed jeremyferris closed 1 month ago

jeremyferris commented 1 month ago

What is the bug or the crash?

In my map and print layout, I have a base DEM set to hillshade and a clipped DEM with pseudocolor and blending mode set to 'multiply' which results in this: Canyon-Park-Elevation-Screenshot

When I export this, however, the pseudocolor layer does not let the hillshade show through: Elevation-Map_0001

Steps to reproduce the issue

This behavior has been observed in the past, so I am not sure that it is restricted to rasters, however, to reproduce:

  1. Import a DEM or other raster into a project.
  2. Either clip that raster or create another layer with the same raster.
  3. Set the bottom raster to hillshade
  4. set the top layer to pseudocolor and select 'multiply' or 'burn' for the layer blending mode.
  5. Create a print layout of the map.
  6. Export the map to an image, pdf, etc.
  7. Notice that the print does not match the map styling

Versions

QGIS version 3.38.2-Grenoble QGIS code revision 130c432394 Qt version 5.15.13 Python version 3.12.5 GDAL/OGR version 3.9.2 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.2-CAPI-1.18.2 SQLite version 3.45.1 PDAL version 2.6.3 PostgreSQL client version 16.2 SpatiaLite version 5.1.0 QWT version 6.2.0 QScintilla2 version 2.14.1 OS version Windows 10 Version 2009

Active Python plugins changeDataSource 3.1 document_management_system 0.3.3 processing_saga_nextgen 1.0.0 db_manager 0.1.20 grassprovider 2.12.99 processing 2.12.99

Supported QGIS version

New profile

Additional context

No response

mblesius commented 1 month ago

Are you using label masking for the contour lines? If so, this might be a duplicate of #49488, a known issue with label masking and blend modes.

jeremyferris commented 1 month ago

I am. You are correct, this seems to be the same issue, thanks for the link. I disabled the mask and the print worked fine.

Workaround is to use Buffers it is for this type of topo map for now instead of masks.

DelazJ commented 1 month ago

Duplicate of #49488