title: Image background removal algorithms
body: <p>I've lots of images with a white background and I need to remove it (make it transparent). I've already tried imagemagick <a href="http://www.imagemagick.org/Usage/masking/#difference" rel="nofollow">convert</a> and for some image that worked quite well, but still cannot be used on dark background.<br>
  I'm kind a noob in this branch of programming... Someone know some good algorithms to remove the background?</p>
  
  <p>Plus, would be great if it could correctly process an image like this:<br>
  <a href="http://dev.addvert.it/cache/24eeab00e5987452d09fbeec0c7678d6_w472_h472_sc.jpg" rel="nofollow">http://dev.addvert.it/cache/24eeab00e5987452d09fbeec0c7678d6_w472_h472_sc.jpg</a></p>
  
  <p>The problem with convert <code>diff</code> is it erase a lot of the image, while the <code>border</code> algo doesn't touch the central part.<br>
  I totally understand how hard is for a calculator to do something like this and I'm pretty amazed with the results of convert, but if there's the chance of a better solution, why not ask? :D</p>