magick icon indicating copy to clipboard operation
magick copied to clipboard

Phash generates same value for every image i.e aa54aa54aa54aa54

Open osiloke opened this issue 11 years ago • 2 comments

Image.Phash seems to generate the same value for every image i try to hash. Scenario

im, err := magick.DecodeData(blob) h, err := im.PHash()

h is always the same value even though image changes. I used to to hash frames in a video file.

osiloke avatar Nov 27 '14 11:11 osiloke

This seems to happen because Convolve() is buggy when using the IM backend. It always generates a completely white image. I'm investigating this problem right now.

rainycape avatar Mar 02 '16 13:03 rainycape

@osiloke Just spent too much time trying to figure out why ConvolveImage() in IM always returns a white image with no luck.

This is not very important to us because we mostly use the GM backend in production, so I'm not gonna spend any more time trying to fix it. However, patches are welcome.

rainycape avatar Mar 02 '16 15:03 rainycape