Getting hash with MagickGetImageSignature from a multipage image
Posted: 2017-02-17T07:16:04-07:00
Long time user of ImageMagick, first time developing with MagickWand.
I'm getting the hashes of lots of images, but I'm having a problem with multipage images like GIF animations. I just thought that MagickGetImageSignature would compute the hash of all the images in the wand, but it only calculates the current image, which by default is the last frame of the animation. I somewhat fixed a problem with that (some animations have an empty frame at the end, giving out lots of false duplicates), moving the index/iterator to the first image in the wand before getting the hash.
I guess I'll have to resort to some custom processing to get a hash of all the images in the wand, but since I'm very new at using MagickWand, I'm first asking if there's a way to get the hash of all the images in the wand with a different usage of MagickGetImageSignature or a similar function.
If not, I guess I'll make some concoction with the hashes of each image.
Regards, JMM.
I'm getting the hashes of lots of images, but I'm having a problem with multipage images like GIF animations. I just thought that MagickGetImageSignature would compute the hash of all the images in the wand, but it only calculates the current image, which by default is the last frame of the animation. I somewhat fixed a problem with that (some animations have an empty frame at the end, giving out lots of false duplicates), moving the index/iterator to the first image in the wand before getting the hash.
I guess I'll have to resort to some custom processing to get a hash of all the images in the wand, but since I'm very new at using MagickWand, I'm first asking if there's a way to get the hash of all the images in the wand with a different usage of MagickGetImageSignature or a similar function.
If not, I guess I'll make some concoction with the hashes of each image.
Regards, JMM.