Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phash generates same value for every image i.e aa54aa54aa54aa54 #29

Open
osiloke opened this issue Nov 27, 2014 · 2 comments
Open

Phash generates same value for every image i.e aa54aa54aa54aa54 #29

osiloke opened this issue Nov 27, 2014 · 2 comments

Comments

@osiloke
Copy link

osiloke commented Nov 27, 2014

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.

@rainycape
Copy link
Owner

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
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants