Cannot strip GPS EXIF data from JPG files

Started by Alastair Gordon, February 02, 2023, 11:36:47 PM

Previous topic - Next topic

Alastair Gordon

Putting the originalFile path in quotes (single or double) didn't work either. Also, I did not use the full URL, only the internal path from the test PHP script file to the target JPG file. Only when I created an actual file whose file name contained NO spaces, would exiftool do what I wanted with the JPG file.

So, to summarize, I had 2 problems, which are now fixed and it works perfectly:

1. I had not put the -php switch in the GPS removal command line. Done!

2. Some of the files I was testing had spaces in their file names (Windows 10). Some simple PHP code created an intermediate file with NO spaces in its filename, and presented that space-less filename as $origFile to exifftool.

ExifTool is a fantastic utility, and I even have it working to get location data from MP4 video files.





Alastair Gordon