tinyapps.org / blog


Remove all color but black from an image #

Background removal apps and web-based services don't do well with noisy images like this one of thin parchment paper which has text from the next page bleeding through:

Image of sheet music before removing background

However, ImageMagick works, well... magic: $ convert in.png -fill white -fuzz 80% +opaque "#000000" out.png

Image of sheet music after removing background

/nix | Feb 02, 2018


Subscribe or visit the archives