It is mentioned in the past.
I only know that the one Wikimedia is using to prevent duplicates is working nice.
https://www.mediawiki.org/wiki/Topic:Tk68mvtbbqwxnh98 On MediaWiki they do have duplicate checks too
SHA1 checksum https://www.mediawiki.org/wiki/API:Imageinfo