removing XMP GPano section of metadata

Started by alvacouch, December 18, 2022, 02:22:21 PM

Previous topic - Next topic

alvacouch

I'm a newbie exiftool user with a task that does not seem to be easy.
  • I have Insta360 Source 360-degree photos with an XMP : GPano section to describe the 360-degree mapping.
  • I use GIMP to project these photos into rectilinear space.
  • GIMP leaves the XMP : GPano metadata intact in the rectilinear files.
  • Thus, the files, when uploaded to google photos, are presented as panoramas rather than rectilinear projections.
  • I can remove all metadata with "exiftool -XMP= filename.jpg" and google photos works fine. But this deletes all other XMP metadata ...
  • ... or I can look up the individual keys in the GPano section and delete them separately. This works too.

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




StarGeek

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:\>
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

StarGeek

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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).