
Thanks.
Code: Select all
convert Modwoosof.jpeg mask -alpha off -compose copy_opacity -composite result.png
No joke, there are thousands of these.snibgo wrote:But perhaps there is something the OP hasn't said. Perhaps there are 1000 images, all with the same background, which is to be removed. Or something.
Code: Select all
bgcolor=`convert 8m3q3jS.jpg -format "%[pixel:u.p{0,0}]" info:`
convert 8m3q3jS.jpg -bordercolor $bgcolor -border 1 \
-fuzz 10% -fill none -draw "matte 0,0 floodfill" -shave 1x1 8m3q3jS_trans.png