Hi. Some help needed!

Started by Papa39, May 08, 2025, 10:18:49 AM

Previous topic - Next topic

StarGeek

I'm guessing you're using PowerShell. CMD is better to use because there are commands that work correctly in CMD and on Mac/Linux, but fail in PowerShell.

Plus, again, first post. Use the installer and you wouldn't have this problem.

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Papa39

#16
Ok I started again. New copies of the files. Copied exiftool.exe and its files into the images folder.  Shift and right clicked and opened terminal.  Used your code

exiftool.exe -r -ext data -gps*= -overwrite_original .

Terminal couldn't find exiftool and suggested putting .\ in front so did that.

As before, multiple minor warnings about duplicate XMP proerty and a few "Entries in IFD0 were out of sequence. Fixed"

129 directories scanned
235 image files updated
7541 image files unchanged
25 files weren't updated due to errors.


1 error said [minor] IFD1 pointer references previous GPS directory
21 said - Can't read GPS data
2 said Bad GPS offset for GPSVersionID
1 said Writing of this type of file is not supported


When I ran it with the previous code mentioned earlier, it just had the one error (the last one - writing of this type of file is not supported).

Papa39

#17
Anyway I copied those 25 files into another folder, converted them to jpeg and viewed them in an exif viewer.  No GPS co-ordinates on any of them.  Five of them have GPSIFD Pointer.  Ran some code looking for gps latitude and longitude and there isn't any.  So assume I can ignore the GPSIFD pointer in those five files?

Curious to know why it only said 235 images updated, when previously it was 245 though (with the different code)

Ok I've installed the Oliver Betz download on a spare laptop for now - just deleted the exiftool files first. Can't get it to work though.
At the moment I'm just thinking - is the job done now or do I need to fully remove those GPSIFD Pointer bits as well?

I don;'t really want to start working on individual files or taking them out of folders and putting them back a) because the .data file names are very long and b) because I need to re-upload the directory folders to the server afterwards and keep everything in tact in the same position - ie don't want to risk changing file names back and forth and borking the server upload!

I'm hoping that as no latitude or longitude was found in any files - that the GPSIFD Pointer is "dead" and there is nothing hidden for it to point to - would that be the case?  Or am I being a bit naive there? Ha ha .  Thank you.

Papa39

Edit - got the Oliver Betz installation to work now (not sure how)

Decided it's too much faffing trying to find little bits of gps data here and there ha ha.

So I found your code on another post for stripping exif and reorientating the photos at the same time.

So done this (if it looks right).  First time I tried it, it duplicated files so I added overwrite original on the end.

exiftool -r -ext data -all= -tagsfromfile @ -Orientation -overwrite_original (drop folder here)

Seems to have worked ok - copied a folder and converted it to jpeg to check photos were all the right way round.

Output for 1 folder was

1 directories scanned 701 image files updated  5 image files unchanged

Curious as to why 5 aren't changed! Presumably no exif data to change?


Papa39

Just wanted to say thank you for your help and patience with me! I was in a rush the other day and sometimes you just need to slow down.  I'm sorted now.  Once I had the application installed from the site you suggested, and found the command to strip all exif and replace orientation, I could just drag and drop each directory into the command and it was done in no time.  Converted copy folders to jpegs to scan through and then ran those through a visual exif scanner and all was as it should be.

Files are now uploaded back in the server.  Thank you.  It's a clever tool - snd this site has many helpful command examples.