Page 1 of 1

Image difference position

Posted: 2016-03-21T03:29:22-07:00
by Cazeu64
Hello !

Sorry about my english level in advance ! :D

I've done a script which compare two images, and give me back a third image with only differences :

Code: Select all

convert image_1.png image_2.png -alpha off +repage \( -clone 0 -clone 1 -compose difference -composite -threshold 0 \) \( -clone 0 -clone 2 -compose multiply -composite \) -delete 0,1 +swap -alpha off -compose copy_opacity -composite -trim +repage result.png
It work fine.

But I need to get the position of the third image. Where the difference where found ?

I didn't find anything about.

Thanks in advance,

Have a nice day !

Re: Image difference position

Posted: 2016-03-21T06:51:31-07:00
by snibgo
I'm not sure what you want. Perhaps "+write info:" before the final repage will do it.

Re: Image difference position

Posted: 2016-03-21T07:47:21-07:00
by Cazeu64
Nice, it's what I was looking for !

Thanks a lot, I was stuck on this issue.

Have a nice day,

Guillaume :).