Remove some pixels colours

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
c7aesa7r
Posts: 6
Joined: 2018-02-03T08:14:16-07:00
Authentication code: 1152

Remove some pixels colours

Post by c7aesa7r »

Image

Image

Image

Image

Image

How can i remove everything on the image and leave only specific pixels, like converting those img bellow to this end result:
Image

Image


The maximum i could achive at the moment was:
convert 2292.bmp -fuzz 85% -fill rgb(254,254,254) -opaque rgb(255,255,255) 2292.png

Image

User avatar
fmw42
Posts: 25944
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove some pixels colours

Post by fmw42 »

try adjusting the -fuzz value in the following as desired:

Code: Select all

convert 247.png -fuzz 35% +transparent white 247_result.png
If using IM 7, then replace convert with magick

Post Reply