To finish up I never did get it to work. I can edit the Title and subject even but somehow it is now locking XPComment. I think there is still a bad tag info there somewhere. So instead I copied just the GPS info and erased the rest. Not perfect but it gets what we need. Final code exiftool -all= -tagsfromfile @ -GPSLatitude -tagsfromfile @ -GPSLongitude -tagsfromfile @ -GPSAltitude -XPComment=test -ThumbnailImage= C:\temp\TD\Photos\Test\NM_SFO_LUP_2020_FGR_039_V1_Misc2_20220607.jpg This copies just...
See gif. For some reason this process is making the comment uneditable until I manually change it then comes back. So weird. Not sure what the heck is going on now. I get one thing and lose another. I can edit Title and Subject just fine. Must be something with the bad tags coming over. I guess its lose the tags or get comments but not both. thanks
See gif. For some reason this process is making the comment uneditable until I manually change it then comes back. So weird. Not sure what the heck is going on now. I get one thing and lose another. thanks
Was just going to post I found the -icc one. That part now works but now when I try to add a comment it does not work. If I manually edit the comment then run it again it does work. Which is nuts. Then I changed to all one line. I also changed to the [] format I found trying to fix it. resultFix = et.execute(*["-all="] + ["-tagsfromfile"] + ["@"] + ["-all:all"] + ["-XPComment=test"] + ["-preserve"] + ["-overwrite_original"] + ["-ThumbnailImage= "] + [jpgFile]) I get this resultFix 1 image files updated...
I was using the second sample from FAQ 20 above instead of the first one. I finally got a combination that works in the command line - it fixes the file and retains the Exif. exiftool -all= -tagsfromfile @ -all:all -unsafe -preserve -F -icc_profile -overwrite_original_in_place -ThumbnailImage= C:\temp\TD\Photos\Test\NM_SFO_LUP_2020_FGR_039_V1_Misc2_20220607.jpg But I cannot get it to work in Python I got the syntax wrong somewhere but I cant figure it out. resultFix = et.execute("-all=", "-tagsfromfile",...
Sorry what i was trying to say above it just striping the thumbnail is not enough and it fails C:\temp>exiftool -ThumbnailImage= C:\temp\NM_SFO_LUP_2020_FGR_039_V1_Misc2_20220607.jpg Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - C:/temp/NM_SFO_LUP_2020_FGR_039_V1_Misc2_20220607.jpg Error: Bad format (0) for IFD2 entry 0 - C:/temp/NM_SFO_LUP_2020_FGR_039_V1_Misc2_20220607.jpg 0 image files updated 1 files weren't updated due to errors I think you are testing on an edited file. There...
Well I think I got it now. No need for bytes not sure where I got that. This works except it is not honoring the preserve and it is changing the date on me. Preserve works in the next line so not sure what is up there. resultFix = et.execute("-exif:all= ", "-tagsfromfile @ ", "-exif:all", "-unsafe", "-F", "-overwrite_original_in_place", "-ThumbnailImage= ", jpgFile, "-preserve") Also tried -P instead but still changing the date on me resultFix = et.execute("-exif:all= ", "-tagsfromfile @ ", "-exif:all",...
Well I think I got it now. No need for bytes not sure where I got that. This works except it is not honoring the preserve and it is changing the date on me. Preserve works in the next line so not sure what is up there. resultFix = et.execute("-exif:all= ", "-tagsfromfile @ ", "-exif:all", "-unsafe", "-F", "-overwrite_original_in_place", "-ThumbnailImage= ", jpgFile, "-preserve") Also tried -P instead but still changing the date on me resultFix = et.execute("-exif:all= ", "-tagsfromfile @ ", "-exif:all",...