Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
nyjan10787y@schlomm They hash every picture. If a pic with the same hash has been uploaded recently, it notifies you. The hashing is also why it can't detect reposts if the picture was resized
-
doomsday7627y@dfox
Please don't mind the curiosity of a young dev, how do you search to check if the same image has been posted recently? Hashsum check?
I'd say maybe the gud ol' image comparison and search, but that would probably take a hell of a lot of time... -
@Cybersapien I think the easiest way would be to store the Hashes in a database and on every post sumbit with a image to force a check with the DB.
I personally would go with a cached DB on a cluster to save ressources and get blazing performance. Or the cheaper one, to have a small dedicated server for it.
You just need to cache every new hash once, because they are not changing anyway.
Check above, somebody posted a github link for PHP Image Hashes -
dfox428277y@Cybersapien yep, it's just a simple md5 hash. We also store a phash (perceptual hash) for each image but we don't use it because it seems to be extremely inaccurate.
Holy shit, this is fucking awesome
undefined
dfox has got the beta power