I am trying to export an image from QGIS with a transparent background, but it doesn't appear to be working. I have tried this in both version 3.22.15-LTR and also 3.28.3. I have tried following the directions in Exporting map with transparent background in QGIS
I find it hard to believe that there is a bug in QGIS (for this function). So I wonder if there is a setting in QGIS that I don't know about.
Steps:
- Create a new print layout
- Right-click, bring up "Page Properties" menu. Use slider to set Opacity to zero
- Click Add Item and Add a new map.
- Hover over the map, right click and bring up "Item Properties" menu. Uncheck background.
- Export image to TIFF. Verify that TIFF is a 32-bit TIFF file. Background pixels are definitely white.
I did this same procedure on a different computer a few days ago and it seemed to work. Most notably, when I used the slider to set opacity to zero (step 2), the background went from white to gray. When I try that I my current installation, it does not happen.
How can I address this problem?
P.S. Added in response to Babel
I double checked the output TIFF image and verified that it is a 4-byte RGB formatted image (TIFF tag 338, "Extra Samples", was set to 2 for Unassociated Alpha). So it seems that the white background is being added by the Print Layout.

