homepage Welcome to WebmasterWorld Guest from 54.227.11.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Compare two images
Bash solution needed
pmkpmk




msg:3214788
 3:52 pm on Jan 10, 2007 (gmt 0)

In order to program a watchdog-timer for a perpetual screenshot, I need to compare the image content from the command line. Even with identical content, diff and cmp report that two consecutive files are different. So I need to look at the image content itself, best with some fuzzyness.

Any suggestions?

 

equalm




msg:3214984
 5:47 pm on Jan 10, 2007 (gmt 0)


When I use "md5sum" on binaries, it works pretty well in distinguishing two files...

except on java .class files. I found that even when the code changed, sometimes the compiled .class file was the same as before.

george

pmkpmk




msg:3215720
 8:37 am on Jan 11, 2007 (gmt 0)

Yes, I tried that too, but since the images DO differ on a binary basis (though not by visual inspection) md5sum gives of course different hashes.

I found a tool called jpegdiff which can get a "fuzziness parameter". Maybe this works.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved