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. It loops over the files, echoing each path, but then it only runs exiftool on the last one. 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 ExifTool will strip out all the Exif data from your photo and create a new file leaving the original photo untouched. The values are just floating point numbers as got from Google Maps for example. To remove the data with ExifTool, all you need to do is type exiftool -all pathtofile. 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 Exif data can be in JPEG, TIFF, and raw image files, and also video and sound files (however a video Exif cannot. Each camera image contains the Exif data which describes all the camera settings that took that picture. ExifTool is a free and open-source software program for reading, writing, and manipulating image, audio, video, and PDF metadata. I know you can use exiftool -authorResearch1, but I want to write the command so that I can just use it on a number of different folders without having to hard code the actual folder name each time. Digital camera image files contain Exif data (Exif is Exchangeable image file format). However I dont know how to write the exiftool command correctly. ExifTool supports many different metadata formats, as well as the maker notes of many digital cameras. From the developer: ExifTool is a platform-independent Perl library plus a command-line application for reading, writing, and editing meta information in a wide variety of files. 1) Basic write example exiftool -artistme a.jpg Writes Artist tag to a.jpg. The actual developer of this free Mac application is Phil Harvey. Output <- system(sprintf("exiftool -GPSLatitude=%f -GPSLongitude=%f %s",q,p,aa)) ExifTool - A Viewer for Camera Exif Data. exiftool a.jpg A basic command to extract all metadata from a file named a.jpg. 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 |