I recommend using Gimp for this. Open the image in Gimp, go to Layers > Add Alpha Channel, then use the magic select tool (looks like a wand on the toolbox), select the white spaces, and press the Delete key.
1 Like