Need help with background change
Need help with background change
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.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Need help with background change
try something like this
convert h1f4Ixf176a2c0668e11.png \
\( -clone 0 -channel red -separate +channel \) \
\( -clone 1 -level 0x50% \) -compose over -composite result.png
convert h1f4Ixf176a2c0668e11.png \
\( -clone 0 -channel red -separate +channel \) \
\( -clone 1 -level 0x50% \) -compose over -composite result.png