ImageMagick - How do I flatten white levels to pure white?

Viewed 3359

I have a png image with a white background which I'd like to turn transparent. This is fairly simple with this command:

$ convert image.png -transparent white image-trans.png

However, if the white background is not completely white (i.e, #FFFFFF, rgb(255,255,255), etc), then this doesn't work well.

Is there a way to set reduce everything below a certain threshold to complete white? Thanks.

1 Answers
Related