ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Robert651 on April 07, 2022, 03:39:18 AM

Title: Writing and Deleting do not work for EXIF::IFD0 tags in the TIF file
Post by: Robert651 on April 07, 2022, 03:39:18 AM
Greetings,

My system type is Windows 10 Pro 10.0.17134. The ExifTool version is ExifTool 12.40 Windows Executable version.

When processing TIF files, the value of some tags cannot be written and deleted. For example, I want to update the Orientation tag for the attached TIF file:

Before updating, the value of its Orientation tag was 1, as shown below:
>exiftool -H -G:0:1:2:3:4:5:6:7 -Orientation upload.tif -a -u -ee3 -n
[EXIF:IFD0:Image:Main::TIFF-IFD0-Photoshop-EXIFInfo-IFD0:int16u:ID-274] 0x0112 Orientation: 1


The update command and output was as below:
>exiftool -Orientation=6 -n -v5 upload.tif
Writing XMP-pmi:Orientation if tag exists
Writing XMP-tiff:Orientation if tag exists
Writing IFD0:Orientation
Writing IFD0:Orientation
======== upload.tif
Rewriting upload.tif...
  Editing tags in: IFD0 TIFF XMP
  Creating tags in: IFD0 TIFF
  FileType = TIFF
  FileTypeExtension = TIF
  MIMEType = image/tiff
  Rewriting IFD0
    + IFD0:Orientation = '6'
  Rewriting IPTC
    [nothing changed]
  Rewriting Photoshop
  Rewriting IPTC
    [nothing changed]
  Rewriting ICC_Profile
  Copying 1 image data blocks
    1 image files updated


After the update, the metadata shows that a copy tag was created instead of updating the existing tag, as shown below:
>exiftool -H -G:0:1:2:3:4:5:6:7 -Orientation upload.tif -a -u -ee3 -n
[EXIF:IFD0:Image:Main:Copy1:TIFF-IFD0:int16u:ID-274] 0x0112 Orientation: 6
[EXIF:IFD0:Image:Main::TIFF-IFD0-Photoshop-EXIFInfo-IFD0:int16u:ID-274] 0x0112 Orientation: 1


The same situation did happen for other EXIF:IFD0 tags for this image, like ImageDescription and Copyright. I tried deleting and writing the value for these tags and they didn't work as well.

In this case, could it be possible to update/write/delete the values for these tags in the TIF file?

Thanks
Robert
Title: Re: Writing and Deleting do not work for EXIF::IFD0 tags in the TIF file
Post by: Phil Harvey on April 07, 2022, 10:13:03 AM
Hi Robert,

Yes.  ExifTool currently doesn't write EXIF information inside the Photoshop metadata of a TIFF image.  This feature is specifically disabled to prevent an infinite recursion, and would require some effort to implement without causing problems like this.

- Phil