I georeferenced a raster file and ended up with a black background (exact 000000) The raster file contains a lot of black, so setting black to be a transparent color is not a good solution since I would loose the details on the raster file.

I have seen several similar questions from a few years ago. None of the answers is straightforward and works in my case. Hoping there is a better solution in more recent QGIS versions.


Thank you Michael, this answered helped

Here are the detailled steps I took. If someone is not an export in QGIS, it might help.

  • Upload raster in QGIS
  • Apply relevant CRS
  • Add transparent no data value to raster (e.g. -333333)
  • Save as Geotiff
  • Open the Geotiff in the Georeferencer (Do not check use 0 for transparency)
  • In raster properties (add no value e.g. -333333) -Run the georeferencer and you should end up with clean file with a transparent background instead of the black background

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.