Duplicates uploaded from android app
Hey, i just finished setting up a new instance, but my phone keeps uploading duplicates. The file then always shows as <filename>+1
How can i prevent this from happening?
8 Replies
More than likely the files aren't exactly the same. Did you copy your files from your phone to a computer or similar and use the cli to upload them?
Yes, i uploaded everything through the cli, but the files still are the same, well it depends on what immich checks. The files have the same exif data
It has to be byte for byte the same for it to know it is a duplicate.
These are two example files, are they really different?
The location data in the +1 sample was removed (might be due to google photos etc). The hashes are dfferent
MD5 (PXL_20230423_074145994.jpg) = c4764491e613cd5714cc979fb85daedf
MD5 (PXL_20230423_074145994+1.jpg) = a3cef4975dacb9836a5a8c9f4ad3a48e
ohh, how could this have happened? is there an instance where the location data is removed when uploading from the mobile app?
On newer phones if the app accessing the pictures doesn't have the location permission, then phone strips that exif out when it gives the app access to it.
Or, in other words, yes you can get an altered version of the file without gps data if you don't have that permission enabled.
I see. I dont remember it asking for location permission. But ill add it manually, thanks