How to delete IPTC2

Started by PandDLong, February 02, 2025, 02:43:54 PM

Previous topic - Next topic

PandDLong


I maintain pretty clean metadata in my files using XMP tag groups and I delete any legacy IPTC data when I receive it in a file.

I have an app that inserts an IPTC2 group into my files.  Beyond the annoyance, why do I care? This IPTC2 data does not have the time zone that I have in my XMP tags and, unfortunately, the composite tags then lose the time zone and then at some point, the time of capture gets changed based on my local time zone. So IPTC2 serves no value for me and it begins a slide into a metadata mess.

I simply want to delete this IPTC2 group.   In the past, I used " -iptc:all= " to delete IPTC data and it worked fine.  It doesn't touch the IPTC2 group.

Using "  -IPTC2:all=  " gives an error as being 'Not a deletable group'

Searching the forum found a few posts about IPTC2 but in those cases the post was looking to preserve or in some way use the IPTC2 data.  I did find one post which advised to also delete trailers - tried that, none were found to delete.

I want to do a full and complete delete of IPTC2 and any other tag groups that are associated with it.

Thanks for your advice.

Michael

Phil Harvey

The answer depends on where the IPTC2 is located.  Try this to see where it is:

exiftool -iptc2:all -G5 FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Two possibilities are Fotostation and AFCP. Both of these create IPTC tags in a trailer for the file. You might try this to remove the IPTC2 groups
exiftool -if "$iptc2:all" -fotostation:all= -AFCP:all= /path/to/files/
"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

PandDLong

Quote from: Phil Harvey on February 02, 2025, 02:50:05 PMThe answer depends on where the IPTC2 is located.  Try this to see where it is:

exiftool -iptc2:all -G5 FILE

- Phil

Thanks.

Seems to live in  [JPEG-APP1-IFD0-IPTC]

How do I delete that group?


Michael

PS. Tried to post the screen shot, but not sure how to do that in this forum

StarGeek

Quote from: PandDLong on February 02, 2025, 06:23:25 PMPS. Tried to post the screen shot, but not sure how to do that in this forum

You have to hit the reply button or if you use the quick reply box at the bottom, you have to hit Preview. Then see this post on how to add the image and place it in the post.

QuoteSeems to live in  [JPEG-APP1-IFD0-IPTC]

How do I delete that group?

That seems to indicate that the IPTC block has been embedded inside the EXIF block. I'm trying to remember if I've ever seen that before. That seems very, very wrong to me.
"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

PandDLong


Thanks for the tip - this time I hit reply and I am seeing the option for attachments.  The screenshot of the output is redundant now I think.


Interesting that this is an odd - or wrong - situation (I mean it is to me, but my frame of reference is very small).

If it is helpful, the "offending" app is Corel Paintshop Pro - 2023 edition.  Just started using it, perhaps it was a bad choice if it is going to mess with the metadata.

Appreciate the help (and exiftool itself).

Michael

Phil Harvey

This is the location where the ICC is stored in a TIFF image.  There are a couple of things in TIFF images that live in different places in a JPEG image, and I have seen all of them written to the wrong place by other software that blindly copies the EXIF information from a TIFF to a JPEG.

You could use ExifTool to delete and rebuild the EXIF to remove it from there.  See the 2nd command in FAQ 20.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

PandDLong

Thanks.

That worked great.

Michael