Need help with background change

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
becuk
Posts: 1
Joined: 2013-12-17T11:32:39-07:00
Authentication code: 6789

Need help with background change

Post by becuk »

Good evening. I have few (1000-2000) images like this (http://petromi.com/get/h1f4Ixf176a2c0668e11) with pink(partial) backgound. Need change pink background to white. Who can give advice, how do it in imagemagick. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Need help with background change

Post by fmw42 »

try something like this


convert h1f4Ixf176a2c0668e11.png \
\( -clone 0 -channel red -separate +channel \) \
\( -clone 1 -level 0x50% \) -compose over -composite result.png
Post Reply