ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: herb on October 10, 2022, 07:14:35 AM

Title: Question to display of photoshop tag
Post by: herb on October 10, 2022, 07:14:35 AM
Hello Phil

I am working with ExifTool 12.47 on a Windows 10 system.

Looking for tag Photoshop:PrintStyle my application got confused because of the following behaviour:

This tag is defined twice:
- PrintStyle(1) has e.g. value "Centered"
  PrintStyle(2) contains unknown / not specified data

- command exiftool <opts> -a -photoshop:Printstyle <testfile>
  displays the following
exiftool <opts> -a -photoshop:Printstyle <testfile>
with opts: empty     --> only PrintStyle(1) is shown
           -u        --> PrintStyle(1) and PrintStyle(2) are shown
           -validate --> also both PrintStyle are displayed

Further tests showed that this behaviour exists for many of the photoshop tags.
I guess for all tags flagged as "unknown" in photoshop.pm file.

Why does this happen?
and can it be avoided, that -u and -validate display all unknown tags?
Should PrintStyle(2) be renamed?

Please look also at: https://exiftool.org/forum/index.php?topic=13716.msg74012#msg74012

Thanks for your help in advance
Best regards
herb
Title: Re: Question to display of photoshop tag
Post by: Phil Harvey on October 10, 2022, 09:32:00 PM
Can you provide a sample for testing?

Thanks.

- Phil
Title: Re: Question to display of photoshop tag
Post by: herb on October 11, 2022, 03:13:20 AM
Hello Phil,

thanks for looking into this.
Attached please find my testfile.

Best regards
herb
Title: Re: Question to display of photoshop tag
Post by: Phil Harvey on October 11, 2022, 07:41:47 AM
Hi Herb,

I see, yes.  The -validate option does validation of some pre-defined tags which are marked as Unknown.  So these extra tags are extracted when -validate is used.

The other topic you referenced concerns dynamically-generated Unknown tags (as opposed to pre-defined ones).  These tags shouldn't appear when just -validate is used.

- Phil
Title: Re: Question to display of photoshop tag
Post by: herb on October 14, 2022, 05:29:51 AM
Hello Phil,

thanks for the latest version of ExifTool.
In history I see:
 Prevent dynamically-generated Unknown tags from being extracted when the -validate option is used without -u
so I thought a correction is done.

But sorry to say: With 12.48 I do not see any change in behaviour.

Best regards
herb
Title: Re: Question to display of photoshop tag
Post by: Phil Harvey on October 14, 2022, 07:34:50 AM
This isn't a dynamically-generated tag.

Any pre-defined Unknown tag is still extracted with -validate.

The behaviour here hasn't changed.

- Phil