Skip to main content
added `-of GTiff`
Source Link
pLumo
  • 6.6k
  • 21
  • 42

1. Method

To remove the black border temporarily in QGIS, you can set the "Additional no data value" in Layer properties -> Transparency to 0 (or 000000). If the border is not 100% black you can use the information tool to find out which color you need to set to transparent. If the border is not evenly black, you can use the custom transparent pixel list in the same window below.

Additional No Data Value

2. Method

If you like to permanently remove the black border in your image by adding an alpha channel, you can use the GDAL Tool nearblack: Go to Raster -> Analysis -> Near Black and set the in- and ouputfile, then use the edit pen to add "-setalpha"-setalpha and -of GTiff.

nearblack -of GTiff -setalpha -o output.tif input.tif

Near Black

(Of course you need to set output.tif and input.tif to your needs)

Near black

To remove the black border temporarily in QGIS, you can set the "Additional no data value" in Layer properties -> Transparency to 0 (or 000000). If the border is not 100% black you can use the information tool to find out which color you need to set to transparent. If the border is not evenly black, you can use the custom transparent pixel list in the same window below.

Additional No Data Value

If you like to permanently remove the black border in your image by adding an alpha channel, you can use the GDAL Tool nearblack: Go to Raster -> Analysis -> Near Black and set the in- and ouputfile, then use the edit pen to add "-setalpha"

nearblack -setalpha -o output.tif input.tif

(Of course you need to set output.tif and input.tif to your needs)

Near black

1. Method

To remove the black border temporarily in QGIS, you can set the "Additional no data value" in Layer properties -> Transparency to 0 (or 000000). If the border is not 100% black you can use the information tool to find out which color you need to set to transparent. If the border is not evenly black, you can use the custom transparent pixel list in the same window below.

Additional No Data Value

2. Method

If you like to permanently remove the black border in your image by adding an alpha channel, you can use the GDAL Tool nearblack: Go to Raster -> Analysis -> Near Black and set the in- and ouputfile, then use the edit pen to add -setalpha and -of GTiff.

nearblack -of GTiff -setalpha -o output.tif input.tif

Near Black

(Of course you need to set output.tif and input.tif to your needs)

Source Link
pLumo
  • 6.6k
  • 21
  • 42

To remove the black border temporarily in QGIS, you can set the "Additional no data value" in Layer properties -> Transparency to 0 (or 000000). If the border is not 100% black you can use the information tool to find out which color you need to set to transparent. If the border is not evenly black, you can use the custom transparent pixel list in the same window below.

Additional No Data Value

If you like to permanently remove the black border in your image by adding an alpha channel, you can use the GDAL Tool nearblack: Go to Raster -> Analysis -> Near Black and set the in- and ouputfile, then use the edit pen to add "-setalpha"

nearblack -setalpha -o output.tif input.tif

(Of course you need to set output.tif and input.tif to your needs)

Near black