in gimp you can the 'Select contiguous regions' tool to select the white edge and then use ctrl+x to cut it out