westonplatter / phashion

Ruby wrapper around pHash, the perceptual hash library for detecting duplicate multimedia files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with remote images

viniciusalonso opened this issue · comments

Good afternoon ,

I have a problem when try a calculate hash with remote file

For example:

image = Phashion::Image.new('http://www.wakanda.org/sites/default/files/blog/blog-github.png')
image.fingerprint

And show this error message:

[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg::load() : Failed to open file 'http://www.wakanda.org/sites/default/files/blog/blog-github.png'.
RuntimeError: Unknown pHash error

Thanks in advance :)

@viniciusalonso pHashion does not support loading remote images at this time. If you wanted to analyze remote images, you'd have to download them local to the ruby code and execute the comparison there.

Always happy to look at pull requests if you want to code add add this to pHashion.

@westonplatter
OK .. i'm going work in the new feature .. and after going send the pull request

Thanks :)

Closing this issue since discussion moved to PR #52