HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

Image uniqueness / perceptual hash #96

Closed dessalines closed 4 years ago

dessalines commented 4 years ago

I assume that pictshare uses a simple md5 or sha hash of the file upload to determine image uniqueness, but it would be really cool if it used an image hash / perceptual hash for uniqueness.

Here's a good php library:

https://github.com/jenssegers/imagehash

geek-at commented 4 years ago

interesting thought, will check it out

geek-at commented 4 years ago

Thought about it and I don't like it because that could mean that a slightls cropped image would get the same hash.