Duplicate tags aren't removed if I specify any other tag

Started by bmn, April 10, 2017, 06:41:14 PM

Previous topic - Next topic

bmn

Apologies for the garbled subject.

I have a number of files (one is attached) that have duplicate Orientation tags. I'm trying to remove the Orientation tag completely, along with a number of other tags in one go.

On a photo with a single Orientation tag, the command ./exiftool.exe -Orientation= -ExifIFD:SerialNumber= image.jpg removes the two specified tags.

However, when working with a photo with duplicated tags, only one of the duplicated tags is removed.

Metadata pre removal:

(mover) PS C:\Users\bmn\Dropbox\code\file-tools> .\exiftool.exe -a -G1 -s -orientation  C:\Users\bmn\Desktop\_MG_2034.jpg
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          Orientation                     : Horizontal (normal)


Removing the Orientation tag with no other tags specified:

(mover) PS C:\Users\bmn\Dropbox\code\file-tools> ./exiftool.exe -Orientation= C:\Users\bmn\Desktop\_MG_2034.jpg
Warning: Duplicate Orientation tag in IFD0 - C:/Users/bmn/Desktop/_MG_2034.jpg
    1 image files updated


Showing both Orientation tags are removed:

(mover) PS C:\Users\bmn\Dropbox\code\file-tools> .\exiftool.exe -a -G1 -s  -orientation C:\Users\bmn\Desktop\_MG_2034.jpg
<no output>


However, if I try it while specifying another tag, one Orientation tag remains:

(mover) PS C:\Users\bmn\Dropbox\code\file-tools> ./exiftool.exe -Orientation= -ExifIFD:SerialNumber= C:\Users\bmn\Desktop\_MG_2034.jpg
Warning: Duplicate Orientation tag in IFD0 - C:/Users/bmn/Desktop/_MG_2034.jpg
    1 image files updated
(mover) PS C:\Users\bmn\Dropbox\code\file-tools> .\exiftool.exe -a -G1 -s  -orientation C:\Users\bmn\Desktop\_MG_2034.jpg
[IFD0]          Orientation                     : Horizontal (normal)


I'm running Exiftool on Windows 10 Version 1607.
Exiftool is version 10.49:

(mover) PS C:\Users\bmn\Dropbox\code\file-tools> .\exiftool.exe -ver
10.49


PH Edit: Clean up commands to show only relevant tags.

Phil Harvey

Could you send me an image with duplicate Orientation so I can try it out.  (philharvey66 at gmail.com)

- 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 ($).

bmn

Quote from: Phil Harvey on April 10, 2017, 10:06:17 PM
Could you send me an image with duplicate Orientation so I can try it out.  (philharvey66 at gmail.com)

- Phil
Have done, look for an email with the subject "Sample file for bug report" sent at 6:42PM EST


Phil Harvey

I got the file, thanks.

This problem will be fixed in ExifTool 10.50.

Thanks for the report.

- 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 ($).