Gimp has a function in the "colour" menue with the name and function of "threshold". That should do the work. You need to copy your work layers though, if you want to make later adjustments.