Just a note to people who use iPhones: iCloud backup is not really a backup. If you delete an image from your phone, it deletes the iCloud copy, too. So, you cannot use iCloud backup to save storage on your phone while keeping all of your images in the so-called backup.
If anyone knows a way around this, I’d be happy to hear it. Apple even seems to imply that you can have your backups and free up your phone storage, but it doesn’t work that way for me.
Thank you, but i would prefer open source. Maybe exiftool alone could “pair” the pictures. As for compression, i have seen dnglab, but i have yet to try it. But being in alpha state, maybe a script to compress every dng could be safer.