Ubuntu – gimp -how to remove background of scanned text

gimp

I have a scanned text with white background how can i remove the background so that as result, i would have the text on a transparent background?
for example

I have this scanned text
enter image description here

And I want to get this result:enter image description here

Best Answer

In order to achieve this, one have to do this: go to Layer -> Transparency -> Color To Alpha enter image description here

this window will openenter image description here select the color of background(in my case it was white) and then click Ok button and done.