![]() ![]() This takes all the photos from /SOURCEDIR/ and moves them into /OUTPUTDIR/ in the following format: 2020/-04-31_140426_00.JPG. exiftool -r -P -progress -d /OUTPUTDIR/%Y/%m/%d/%Y-%m-%d_%H%M%S%%+.2c.%%e "-filenameshift them backwards, simply replace "+=" with "-=". ![]() This simply shifts all photos in the current directory forward by the YY.SS amount of time. exiftool -overwrite_original "-AllDates+=YY:MM:DD HH:MM:SS" * My use case is simple: I have a ton of photos taken on my camera, their times are incorrect, I want to geotag these photos, and I want to organise them in a clear folder structure. ExifTool is a command-line program that can be used on Windows, Linux and MacOS. To fix this i have dropped the Ref options removing and by changing the South direction (or potentially would need to do the same for West) to a negative number: $ exiftool -XMP:GPSLatitude=-1.2843265 -XMP:GPSLongitude=36.8798949 -P test.I'm a huge fan of ExifTool, and I thought I'd make a post condensing the most useful information regarding it. test.jpegĮrror: Bad PreviewIFD directory - test.jpeg When trying to do a similar thing as suggested by Casto Salobreña i got the following error: $ exiftool -XMP:GPSLatitude=1.2843265 -XMP:GPSLongitude=36.8798949 -GPSLatitudeRef=South -GPSLongitudeRef=East -P test.jpeg ![]() The values are just floating point numbers as got from Google Maps for example. To add the gps coordinates with exiftool: exiftool -XMP:GPSLongitude="-84.683333" -XMP:GPSLatitude="10.502117" -GPSLongitudeRef="West" -GPSLatitudeRef="North" photo.jpg Output <- system(paste("exiftool -GPSLatitude=",q," -GPSLongitude=",p," ", aa)) Solution 2 Output <- system(sprintf("exiftool -GPSLatitude=%f -GPSLongitude=%f %s",q,p,aa)) Result from the thread on the exiftool forum ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |