How is identify image signature computed in v7 ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
starfry
Posts: 11
Joined: 2015-07-18T16:47:36-07:00
Authentication code: 1151

How is identify image signature computed in v7 ?

Post by starfry »

I have some code that computes an image signature like this

Code: Select all

$ stream -map rgb -storage-type short file.tif - | sha256sum
bf186e203ad5e7642483d0616793c2d9697629e039acbd733cc37a298eb547b8  -
It gave me the same result as `identify` when I use IM 6.9.9-35:

Code: Select all

identify -verbose raw.tif | grep -i signature
    signature: bf186e203ad5e7642483d0616793c2d9697629e039acbd733cc37a298eb547b8
However, when I use IM 7.0.7-23 the signature is different (the stream output is the same).

I can see that the algorthm has changed in v7 and has done before. But how is the signature now computed - can I obtain the same output with 'stream' like before ?
Post Reply