Different signature hashes between IM versions?
Posted: 2013-05-10T23:52:35-07:00
Hi,
I've just discovered the 'signature' field reported by the "identify" command line tool after looking for a way to compare a set of images with known properties - the same JPEG image data but different EXIF fields.
I thought it'd be a great way to identify duplicate images but from initial testing it seems that the signature is reported different between different ImageMagick versions.
I've tried on three different systems all of which just happen to have different versions of ImageMagic installed - I get something like the following between them (each section includes the ImageMagick version, a sha1sum test to show that it is exactly the same file on each system and then the identify signature command):
==== Windows box ====
identify.exe -version
Version: ImageMagick 6.8.1-10 2013-01-10 Q16 http://www.imagemagick.org
C:\sha1.exe test1.jpg
238fd30e063585c8e2d3572de2c4765dd95bae1d test1.jpg
C:\>identify -verbose -format "%#" test1.jpg
313bfbd3915ba85b0aea12eac03e033ab62d0124d56815e6c1514bd9dbad49d8
==== Linux Box #1 ====
box:/home/vps/Dropbox# identify -version
Version: ImageMagick 6.6.0-4 2012-05-03 Q16 http://www.imagemagick.org
sha1sum test1.jpg
238fd30e063585c8e2d3572de2c4765dd95bae1d test1.jpg
box:/home/Dropbox# identify -verbose -format "%#" test1.jpg
aa53e45042741398ecfe95f019af5c1331bb4d6678c4513f80adac4f784b0155
==== Linux Box #2 ====
[html]$ identify -version
Version: ImageMagick 6.2.8 02/25/09 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
sha1sum test1.jpg
238fd30e063585c8e2d3572de2c4765dd95bae1d test1.jpg
[html]$ identify -verbose -format "%#" test1.jpg
26d775bb0beb2aff6e58ea551ed9348a069d1aac69c9451f05b0ca798b9b8d74
I basically just wanted to check to see if I'm doing anything obviously boneheaded here; I am wondering if the hashing algorithm might've changed between IM versions or something?
Thanks for any suggestions.
I've just discovered the 'signature' field reported by the "identify" command line tool after looking for a way to compare a set of images with known properties - the same JPEG image data but different EXIF fields.
I thought it'd be a great way to identify duplicate images but from initial testing it seems that the signature is reported different between different ImageMagick versions.
I've tried on three different systems all of which just happen to have different versions of ImageMagic installed - I get something like the following between them (each section includes the ImageMagick version, a sha1sum test to show that it is exactly the same file on each system and then the identify signature command):
==== Windows box ====
identify.exe -version
Version: ImageMagick 6.8.1-10 2013-01-10 Q16 http://www.imagemagick.org
C:\sha1.exe test1.jpg
238fd30e063585c8e2d3572de2c4765dd95bae1d test1.jpg
C:\>identify -verbose -format "%#" test1.jpg
313bfbd3915ba85b0aea12eac03e033ab62d0124d56815e6c1514bd9dbad49d8
==== Linux Box #1 ====
box:/home/vps/Dropbox# identify -version
Version: ImageMagick 6.6.0-4 2012-05-03 Q16 http://www.imagemagick.org
sha1sum test1.jpg
238fd30e063585c8e2d3572de2c4765dd95bae1d test1.jpg
box:/home/Dropbox# identify -verbose -format "%#" test1.jpg
aa53e45042741398ecfe95f019af5c1331bb4d6678c4513f80adac4f784b0155
==== Linux Box #2 ====
[html]$ identify -version
Version: ImageMagick 6.2.8 02/25/09 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
sha1sum test1.jpg
238fd30e063585c8e2d3572de2c4765dd95bae1d test1.jpg
[html]$ identify -verbose -format "%#" test1.jpg
26d775bb0beb2aff6e58ea551ed9348a069d1aac69c9451f05b0ca798b9b8d74
I basically just wanted to check to see if I'm doing anything obviously boneheaded here; I am wondering if the hashing algorithm might've changed between IM versions or something?
Thanks for any suggestions.