I’m considering only allowing unique images to save storage space, and, to do this I will:
- Hash image on upload
- Check a database of images, to see if there is a hash match.
I have concerns though of hashing uploaded images slowing down the application.
Is this a recommended practice? Or do people tend to allow duplicate image uploads as storage is cheap?