I made a map in QGIS that includes a couple different gradients. Here you can see an indicator map that has a gradient fill enabled. (This image is from the print layout/composer.)
(Here is the symbology for the indicator map.)
The gradient fill on the indicator map appears in the layout, however when I export the layout as an image they disappear.
Here is the map exported as a PNG. The box showing the extents of the main map also has a gradient fill, which is showing up, but the gradient fill on the continents is not visible.
Here is the map exported as a JPEG. Again, not the result I was hoping for.
When I export to PDF the gradient is preserved, but looks different. As far as I can tell the rest of the map is exporting normally.
What do I need to do to preserve the gradient fill on export? Is this the QGIS manifestation of this issue?
Update:
The issue seems to be that the gradient fill being lost on export to image. I changed the color of the gradient from the old white-to-transparent gradient to one that is green to transparent. Here it is in the main QGIS window:
And here it is in the print composer:
When I check the exported image (png) I still get the flat white appearance I showed above. Not even a hint of green. Somehow QGIS seems to be ignoring the fill when it exports.
My best guess at the moment is that it has something to do with the gradient fill's coord mode being set to viewport. If I set coord mode to object, the gradient fill in the print layout looks the same as the exported image. The question now becomes how to export a gradient fill with the coord mode set to viewport.