lmkabull.blogg.se

How to run the exiftool command line utility mac
How to run the exiftool command line utility mac





how to run the exiftool command line utility mac

I’ve seriously cut back this post as so many things I’ve learnt, but the easiest way for you pick up from my learning is to just view the code. If you wish to view the full code, grab it, run it, etc then head over to this link. That tiny piece of code above (change to backtick) took so long and with a combination of human error and not knowing the order to use a ` or a ‘ or a ” or even a range of them required fair bit of trial and error. \exiftool.exe `-GPSLatitude*=$point.lat `-GPSLongitude*=$point.lon $f.FullName -overwrite_original_in_place Phew… Now with the use of backticks I can do the following. \exiftool.exe $combLat $f.FullName '-overwrite_original_in_place' $combLon = '-GPSLongitude*=' + $point.lon This meant on my first pass I had to split it into 2 requests to correctly update the GPS. There is an issue with powershell, and the - cause it issues. I had the exiftool in the same folder as the script so. \ if the item isn’t in the PATH or some other means to grab the correct folder location. Option 2 – Direct callĭirect call requires to add. If you look at the link to the MS article I tried all the & options it suggests and nothing was close to working. This failed as the parameters for exiftool require to be more than a single string, which is what the & does. Powershell can call executables in various ways as can be seen here. So why not reuse this script and as well as copying it across, I can add GPS data and also copy it across. Getting it to work within Powershell is important for myself as I’m using that to copy photos from my SD card onto my machine much much faster than the Sony software can ( see here). Now that that issue is resolved ( see here) we move on to getting it to work within Powershell. Previously I highlighted the issue in using Exiftool and getting it to add GPS data to a photo.







How to run the exiftool command line utility mac