ExifTool Forum

ExifTool => Newbies => Topic started by: alvacouch on December 18, 2022, 02:22:21 PM

Title: removing XMP GPano section of metadata
Post by: alvacouch on December 18, 2022, 02:22:21 PM
I'm a newbie exiftool user with a task that does not seem to be easy.

Is there any clever command that removes a "subsection" of XMP, such as "XMP : GPano" and leaves all other subsections of XMP alone?

Thanks a bunch!

P.S. the command:

$ exiftool --XMP-GPano:all="" file.jpg

responds:

Warning: Not a deletable group: -XMP-GPano



Title: Re: removing XMP GPano section of metadata
Post by: StarGeek on December 18, 2022, 08:34:02 PM
What version of exiftool are you using?  XMP-GPano is deletable in the image I have.

C:\>exiftool -G1 -a -s -XMP-GPano:all Y:\!temp\aaaa\test.jpg
[XMP-GPano]     StitchingSoftware               : GoPro Fusion Studio
[XMP-GPano]     UsePanoramaViewer               : True
[XMP-GPano]     ProjectionType                  : equirectangular
[XMP-GPano]     CroppedAreaImageHeightPixels    : 2880
[XMP-GPano]     CroppedAreaImageWidthPixels     : 5760
[XMP-GPano]     FullPanoHeightPixels            : 2880
[XMP-GPano]     FullPanoWidthPixels             : 5760
[XMP-GPano]     CroppedAreaLeftPixels           : 0
[XMP-GPano]     CroppedAreaTopPixels            : 0
[XMP-GPano]     SourcePhotosCount               : 2

C:\>exiftool -P -overwrite_original -XMP-GPano:all= Y:\!temp\aaaa\test.jpg
    1 image files updated

C:\>exiftool -G1 -a -s -XMP-GPano:all Y:\!temp\aaaa\test.jpg

C:\>
Title: Re: removing XMP GPano section of metadata
Post by: StarGeek on December 18, 2022, 08:36:47 PM
I just noticed when fixing your formatting that you have two dashes in front of the tag name.  That is what is causing the error.  You're telling exiftool to look for a group named -XMP-GPano with a leading dash, not XMP-GPano.