rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
705 stars 178 forks source link

File hash searching #148

Closed DonaldTsang closed 5 years ago

DonaldTsang commented 6 years ago

Able to search files using hash: with these types

rr- commented 6 years ago

Why?

DonaldTsang commented 6 years ago

Those features exists in many boorus like danbooru, gelbooru and sanakau,
so that you can find the carbon-copy of a file.
also, it can prevent file duplicates.

rr- commented 6 years ago

You can't upload duplicates either way, the server already checks for it during file upload. (It also performs reverse search for you in the frontend so even if the files are only similar, it presents you with choice whether to upload the image or not.)

SHA1 checksums are already implemented via content-checksum token in post search. https://github.com/rr-/szurubooru/blob/master/API.md#listing-posts

I don't see any need to store anymore hashes.

DonaldTsang commented 6 years ago

I would say cross-compatibility with Gelbooru, which uses MD5,
and by extension, many other *boorus uses MD5 as a standard.
Danbooru and Sankaku will accept SHA1 though.

rr- commented 6 years ago

OK

DonaldTsang commented 6 years ago

For further reference: https://ibsearch.xxx/

sgsunder commented 5 years ago

Closing this for now. If there seems to be a high demand for this feature, please make a PR.

sgsunder commented 3 years ago

MD5 checksums now returned in 2bdb072296633e444ec63eee45eea33272dfaefc and searchable in 2dfd1c2192961065fc27785c31cd86f7ceb82412