does image size affects the imagemagick compare?
Posted: 2011-06-10T18:15:33-07:00
hi! I have a program that runs daily. This program
1. takes screenshots using iMacros tool "SAVEAS" function.
2. the screenshots are compared from yesterday and today using iMageMagick.
3. since the screenshots have dynamic areas, I used the composite -gravity and composite -geometry to cover those dynamic areas before comparing them.
4. using the "compare -metric AE", yesterday and today's screenshots are compared. As soon as ImageMagick detected a change, it will send an email to me with the difference file attached.
5. Today's screenshot will be renamed to "yesterday.png" for the next day comparison so recent screenshots are only saved.
for sometime, I'm getting email with attached file that has no visible difference. Usually, difference areas has red colors. So I did some testing on taking screenshots before it is being processed by ImageMagick. With 3 days screenshot, I noticed that one of the screenshots has a different size. My questions are:
1. does the image size affect the compare function of ImageMagick? If yes, what metric should I use?
2. As I understand it, "compare" function works on images with the same dimension only. So this answers #1 question as well.
3. Why do I receive difference file with no visible difference (red colors)?
4. I would like to create logs for this program. As of now, I only have the iMacros process logged but not ImageMagick. Any ideas?
I hope you could find time to answer my inquiries. This is very important to me.
Thanks again!
1. takes screenshots using iMacros tool "SAVEAS" function.
2. the screenshots are compared from yesterday and today using iMageMagick.
3. since the screenshots have dynamic areas, I used the composite -gravity and composite -geometry to cover those dynamic areas before comparing them.
4. using the "compare -metric AE", yesterday and today's screenshots are compared. As soon as ImageMagick detected a change, it will send an email to me with the difference file attached.
5. Today's screenshot will be renamed to "yesterday.png" for the next day comparison so recent screenshots are only saved.
for sometime, I'm getting email with attached file that has no visible difference. Usually, difference areas has red colors. So I did some testing on taking screenshots before it is being processed by ImageMagick. With 3 days screenshot, I noticed that one of the screenshots has a different size. My questions are:
1. does the image size affect the compare function of ImageMagick? If yes, what metric should I use?
2. As I understand it, "compare" function works on images with the same dimension only. So this answers #1 question as well.
3. Why do I receive difference file with no visible difference (red colors)?
4. I would like to create logs for this program. As of now, I only have the iMacros process logged but not ImageMagick. Any ideas?
I hope you could find time to answer my inquiries. This is very important to me.
Thanks again!