[svlug] ImageMagick scripts
kwanrj03@comcast.net
kwanrj03 at comcast.net
Fri Sep 10 10:51:51 PDT 2004
I am attempting to write some scripts for ImageMagick, and am
hitting a brick wall on presumably easy tasks.
The goal is to compare images in two PNG files. The PNG files
might use different compression schemes (e.g., none at all), but
still have identical images. I can get a PNG of differences by:
composite -compose difference file1.png file2.png diff.png
But I'd like to automate recognition of the results and report, for example,
1. two images are identical.
2. differences are limited to a particular bounded region.
3. colors differ less than X percent.
These seem like they should be pretty elementary, but I can't
find an answer.
--Rick Kwan
More information about the svlug
mailing list