ExifTool Forum

ExifTool => Newbies => Topic started by: Bob22 on September 09, 2022, 06:54:56 AM

Title: Delete WLPG/TTP People tag
Post by: Bob22 on September 09, 2022, 06:54:56 AM
I have used both Windows Live Photo Gallery and TagThatPhoto because it writes the people name to the jpeg without the need of xmp files.

Note sure if that means EXIFtools isn't the right tool, but am looking to remove the already tagged peoples names from the 2 columns highlighted (see picture attached) so I can use a different product and start from stratch

Any assistance would be greatly appreciated.


I've tried to follow some of the different topics and EXIF command tools but coding isn't my thing.
https://exiftool.org/forum/index.php?topic=12474.msg67429#msg67429
https://exiftool.org/forum/index.php?topic=8528.msg43810#msg43810

Title: Re: Delete WLPG/TTP People tag
Post by: Bob22 on September 09, 2022, 06:57:05 AM
I don't want to remove another info... just peoples names
Title: Re: Delete WLPG/TTP People tag
Post by: Bob22 on September 09, 2022, 07:02:46 AM
Quote from: Bob22 on September 09, 2022, 06:57:05 AMjust peoples names

Reading more - looks like I should also remove the Region info associated with peoples face tag
Title: Re: Delete WLPG/TTP People tag
Post by: StarGeek on September 09, 2022, 11:17:17 AM
I don't know where TagThatPhoto writes, so you'll have to use the command in FAQ #3 (https://exiftool.org/faq.html#Q3) to figure it out.

To remove just the names, but leave the regions intact, your command would be
exiftool -RegionPersonDisplayName= /path/to/files

To remove the Microsoft regions completely, you would use
exiftool -XMP-MP:all= /path/to/files
Title: Re: Delete WLPG/TTP People tag
Post by: Bob22 on September 09, 2022, 06:22:07 PM
Thanks StarGeek :)

ended up using
exiftool -XMP:all= /path/to/files

Is this a bad idea if wanting to start from stratch?


To remove the keywords tag, used a combination of
exiftool -EXIF:XPKeywords= /path/to/files
exiftool -IPTC:Keywords= /path/to/files



also, using exiftool --XMP-MP:all= /path/to/files
created a copy of the image with extension *.JPG_original

so I assume I can delete all these (if I'm happy with the changes)
Title: Re: Delete WLPG/TTP People tag
Post by: StarGeek on September 09, 2022, 07:55:47 PM
Quote from: Bob22 on September 09, 2022, 06:22:07 PMexiftool -XMP:all= /path/to/files

Is this a bad idea if wanting to start from stratch?

It depends if there was any data at all that you might want to keep.  But nearly all cases, XMP data is added afterwords by various programs, so as long as you don't mind losing it, it's fine. 

QuoteTo remove the keywords tag, used a combination of
exiftool -EXIF:XPKeywords= /path/to/files
exiftool -IPTC:Keywords= /path/to/files

You can combine all the commands with
exiftool -XPkeywords= -Keywords= -XMP:All= /path/to/files/

Quotealso, using exiftool --XMP-MP:all= /path/to/files
created a copy of the image with extension *.JPG_original

so I assume I can delete all these (if I'm happy with the changes)

Yep.
Title: Re: Delete WLPG/TTP People tag
Post by: Bob22 on September 09, 2022, 09:53:20 PM
Thanks StarGeek


if it helps anyone else in the future....and if I forget in the future....

do your own tests and use at your own risk  :o

 exiftool -RegionPersonDisplayName= -XMP:RegionRectangle= -XMP:Subject= -XMP:LastKeywordXMP= -XMP:PersonInImage= -XMP:RegionName= -XMP:RegionType= -XMP:RegionRectangle= -EXIF:XPKeywords= -overwrite_original /path/to/files
Title: Re: Delete WLPG/TTP People tag
Post by: Phil Harvey on September 09, 2022, 10:27:06 PM
You've got -XMP:RegionRectangle= twice in your command.  Also, if you are trying to delete all region information it may be better to delete the containing structure.  Use the -struct option when extracting to see the structures, and delete the structures by name instead of deleting the elements individually.

- Phil
Title: Re: Delete WLPG/TTP People tag
Post by: StarGeek on September 10, 2022, 11:31:28 AM
I would suggest the second command in my post above.  That will remove all the Microsoft region data since that seems to be your goal with your longer command.

Also, since you're removing the LastKeywordXMP, you might also want to remove LastKeywordIPTC as well.  You can remove both with a wildcard.

You can also simplify the command by removing the group names

exiftool -XMP-MP:all= -LastKeyword*= -Subject= -XPKeywords= -Keywords= /path/to/files/
Title: Re: Delete WLPG/TTP People tag
Post by: Bob22 on September 10, 2022, 04:28:17 PM
thanks for your replies




----------------------------------
The more I learn, the less I know