Closed angrycuban13 closed 3 years ago
Unless the file hash changes once you modify the EXIF data?
You diagnosed it correctly. Is there a reason you're re-importing photos that have already been imported once? You can use the --trash
option to move the source files to the trash once they've been imported.
If you're not able to use --trash
or for some reason you're always going to re-import photos then you can look at adding the location data to the photo before importing (using a separate tool like exiftool) and avoid using update
at all.
So the reason why I "re-import" is because of the way the tool downloads the photos. It downloads a folder for the year 2018
and then a folder for the day 2018-08-07
and whatever photos were taken that day. If it doesn't detect the photos in these folders then it re-downloads them as it detects them as "missing".
I like your idea of using exiftool directly to update the location and just import them with Elodie afterwards so the hash matches.
Another question for you, how did you get the verify
to email you on bit rot?
Here are the commands I use to update the geolocation data in a photo.
# Update the lat/lon of a photo
# A negative latitude is South
# A negative longitude is West
exiftool -EXIF:GPSLongitude="-84.683333" -EXIF:GPSLatitude="10.502117" \
-GPSLongitudeRef="West" -GPSLatitudeRef="North" \
/path/to/photo.jpg
The verify
command returns an exit code of 0
on success. You can use that in a shell script to only send an email when it fails. Here's an example for a shell script.
Hi,
I've been using Elodie for a few weeks now. I recently organized my whole iCloud library and tagged every photo. Very happy with it so far.
Now, I'm running into an issue that I don't know if it is PEBKAC or just by design.
I download photos from an online source using third party tool and after it downloads the directory structure looks as such:
After downloading the photos I run the import with Elodie as such:
It all goes well and it moves it where I want it to be moved and since all the photos are missing the GPS data, they all get placed as follows:
Now after moving it, I update the location as follows:
Everything gets moved as follows
After running that command the file structure looks as follow:
Now the problem I'm running into is that if I run the import again, it will re-import every picture that doesn't have the GPS data (which is all of them), so it ends up looking like this:
This creates the issue where I can't quite automate everything like I had intended to do. Am I doing something wrong or this is just sort of by design? I figured that since Elodie keeps a hash of every photo, it would recognize
<filename>.jpg>
's hash even though it had no GPS data. Unless the file hash changes once you modify the EXIF data? Excuse my ignorance if I'm wrong.