Method to de-duplicate a large amount of images contained in a complicated folder structure which must be maintained.
Given a directory containing duplicate jpg images with any folder structure, img-banker.sh
will:
- Recursively find all jpgs.
- Calculate the file's md5 hash.
- Copy the file to
img-bank
directory using the md5 hash as the new name (the "banked image"). - Replace the original image with a symlink to the banked image.