Raster Transparency

Allows adjusting the transparency of single-band rasters interactively. For a selected raster, the user can define a range of pixel values that will be visible. Outside that range, all remaining pixel will become transparent.

Installation

Plugin published in my repository.

Usage

Once installed and enabled, Raster Transparency adds a new tab called "Raster Transparency" to the "Layer Styling Panel".

In the Layers tree, select a singleband or multiband raster in a singleband mode (e.g., Singleband pseudocolor). Then, open the "Layer Styling Panel" and switch to the "Raster Transparency" tab.

Raster Transparency panel

Use the slider and/or spinboxes to control the transparent pixels range. The slider has two handles: the left handle is used to control transparency from the raster's minimum value to the upper pixel values; the right handle is used to control transparency range from the raster's maximum value to lower pixel values. The raster transparency will change interactively as you move the slider's handles or edit the values in the spinboxes.

Here are some examples using a raster with values from 85 to 243. After setting left handle to the position 95, all pixels with values from 85 to 95 will become transparent.

Changing lower values

If we, additionally, move the right handle to the 220 position, a new transparency range will be added to the raster's style, and all pixels with values from 220 to 243 will become transparent as well.

Changing upper values

So, it is possible to control the raster transparency from both sides: from the minimum and maximum values, in real-time.

Reporting bugs

Please report bugs via bugtracker.