I am trying to clip a raster image with the outline shape of a country, I imported the .png image in using the georeferencer plugin. I then selected the country I wanted to use and saved it as a shapefile. I then tried to use the Raster extraction - clip raster by mask layer.

But this did not work

Original .png image

Country Shapefile

Last image is what it output

The last image is what I managed to get it to output, but on the other occasions it did not work at all and that last image is not exactly what I want

1 Answer 1


I was making the mistake of not selecting the add alpha before running

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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