# Removing black background and black font from raster in QGIS

I have a raster where I want to remove the black background.

I tried it with setting "Additional no data value" in Layer properties -> Transparency to 0.

But the place names on the raster are also black and they disappear as well. Is there another method that would work here?

You can create a polygon that delineates the valid raster pixels and then use QGIS' Clip Raster by Mask layer in order to remove the background. You can find this tool in the menu Raster / Extraction. Remember also to assign an non-zero noData value and to tick the "Clip the extent of the target dataset to the extent of the cutline".