Page 1 of 1

Need help with background change

Posted: 2013-12-17T11:36:45-07:00
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.

Re: Need help with background change

Posted: 2013-12-17T17:14:49-07:00
by fmw42
try something like this


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