Remove background in batch
Posted: 2015-09-05T17:02:55-07:00
Hello guys, Im new in this software.
I need to remove background of multiple images, i try with this code:
and it works!!
example:
original
background
Result:
Although, How i can convert this code for a batch?
But i donĀ“t know how to use mogrify.
Thank you very much.
I need to remove background of multiple images, i try with this code:
Code: Select all
composite -compose difference overlay.jpg background.jpg diff.png
convert diff.png -threshold 2600 mask.png
convert overlay.jpg mask.png -alpha off -compose CopyOpacity -composite Final.png
example:
original
background
Result:
Although, How i can convert this code for a batch?
But i donĀ“t know how to use mogrify.
Thank you very much.