oboto wrote:Wherever anything is different: white, otherwise black.
But that's not your "desired output" image.
Wherever
everything is different: white, otherwise black:
Code: Select all
convert ^
current-frame.png ^
previous-frame.png ^
( -clone 0-1 -alpha extract -compose Difference -composite ) ^
( -clone 0-1 -alpha off -compose Difference -composite ) ^
-delete 0-1 ^
-compose Darken -composite ^
de.png
Wherever
anything is different: white, otherwise black:
Code: Select all
convert ^
current-frame.png ^
previous-frame.png ^
( -clone 0-1 -alpha extract ^
-compose Difference -composite ) ^
( -clone 0-1 -alpha off -fill White +opaque Black ^
-compose Difference -composite ) ^
-delete 0-1 ^
-compose Lighten -composite ^
da.png
Windows BAT syntax, adjust for other shells.