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

PDF export missing raster layer if Blend Mode is Multiply and Mask labels #49488

Open
1 of 2 tasks
dgreenewalt opened this issue Jul 27, 2022 · 7 comments
Open
1 of 2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Regression Something which used to work, but doesn't anymore

Comments

@dgreenewalt
Copy link

What is the bug or the crash?

Export layout or map to PDF with 2 raster layers. One layer set to Blending Mode = Multiply. That layer is not exported. If set to "Normal" and transparency 50%, both layers export, but not the desired effect.

Steps to reproduce the issue

load 2 raster (tif) layers
set layer 1 display to normal blending mode
set layer 2 display to multiply
"export map to PDF"
or create layout and "export as PDF"

Versions

Windows 10
not working in 3.26
working with 3.24

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@dgreenewalt dgreenewalt added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 27, 2022
@dgreenewalt dgreenewalt changed the title PDF export missing raster layer if multiply PDF export missing raster layer if Blend Mode is Multiply Jul 27, 2022
@Pedro-Murteira Pedro-Murteira added Rasters Related to general raster layer handling (not specific data formats) Project labels Jul 27, 2022
@dgreenewalt
Copy link
Author

The offending layer looks to be a vector layer (contours) with labels (elevation) using masking. If mask is unchecked, the layers export as in the screen display. If mask is used the underlaying raster does not display.
masksample

nomasksample

@dgreenewalt dgreenewalt changed the title PDF export missing raster layer if Blend Mode is Multiply PDF export missing raster layer if Blend Mode is Multiply and Mask labels Aug 2, 2022
@gioman gioman added Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Regression Something which used to work, but doesn't anymore and removed Rasters Related to general raster layer handling (not specific data formats) Project labels Aug 8, 2022
@gioman
Copy link
Contributor

gioman commented Aug 8, 2022

The offending layer looks to be a vector layer (contours) with labels (elevation) using masking. If mask is unchecked, the layers export as in the screen display. If mask is used the underlaying raster does not display.

@dgreenewalt seems to work fine in the same scenario here (3.26.1), could you attach a small sample project?

@gioman gioman added the Feedback Waiting on the submitter for answers label Aug 8, 2022
@dgreenewalt
Copy link
Author

dgreenewalt commented Aug 10, 2022

testing.zip
Here is a link to geopackage including data and project.

https://ln5.sync.com/dl/2f8a2b5b0/abvveu62-8h9bgj5m-ay87kzth-6zxcch8g

export the view or layout to pdf (or jpg) and the hillshade layer doesn't show. I can't use raster with "Multiply" (transparency does work) or contour labels with masking.

Thank you for looking into this. Maybe a project setting I have wrong? I've tried these 4 layers in a new project with no luck.

@gioman gioman removed the Feedback Waiting on the submitter for answers label Aug 11, 2022
@dgreenewalt
Copy link
Author

Tested with version 3.26.2 - same result. Raster layer #2 does not export if label masking is active.

@FeroS66
Copy link

FeroS66 commented Mar 27, 2023

This bug is still in 3.28.4 version.
Exports to TIFF or PDF does not accept multiply setting of the overlay layer when there is vector layer with mask enabled.
In 3.22.15 version everthing works fine.

@toineR-31
Copy link

test with 3.28.8 LTR and 3.32.0 and the problem is still here.

@FeroS66
Copy link

FeroS66 commented Jul 25, 2023

3.28.9 LTR - problem not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

5 participants