User defined - two values in one column

Started by pedro22, February 02, 2017, 12:04:44 PM

Previous topic - Next topic

pedro22

Apparently well, but in the column PhotoshopQuality have a value of 10 in a MyQuality 6 - and instead of 66% is 66

Phil Harvey

I don't understand what you want, but you can do mathematical manipulations in the ValueConv statement if necessary.

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

pedro22

What I mean is that: if there is no value -PhotoshopQuality is that the column was not empty, let's display the value of the tag -quality - and now it is almost: but the real value -PhotoshopQuality is reduced by 4 in column MyQuality

real value: 10 now 6 should be displayed 10
real value: 6 now 2 should be displayed 6

and does not display % sign for Ducky quality via ".ExifTool_config"

the only thing that is good: value NORMAL for Nikon quality

And in ExifToolGUI I can not use "-*Quality" to solve a problem or a separator (sign or) -PhotoshopQuality | -Quality

Phil Harvey

Ah, I see.  There were print conversions for these tags that you want to keep.  Try changing the ValueConv to this:

    ValueConv => '$prt[0] || $prt[1]',

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

pedro22

That's exactly what it was! Thanks Phil!
if only this line is important?
MyQuality => {
            Desire => {
                0 => 'PhotoshopQuality',
                1 => 'Quality',
            },
            ValueConv => '$prt[0] || $prt[1]',
        },

I wanted to delete the remaining entries - unless it does not affect the speed of reading the data.

Can I use this file to see all the 'Unknown tags"?

Phil Harvey

Quote from: pedro22 on February 03, 2017, 10:52:55 AM
That's exactly what it was! Thanks Phil!

Great.

Quoteif only this line is important?

yes.

QuoteI wanted to delete the remaining entries - unless it does not affect the speed of reading the data.

I don't know what you mean.  Do you mean remove the other columns in ExifToolGUI?  I don't know about this.

QuoteCan I use this file to see all the 'Unknown tags"?

The config file doesn't help with that, but the GUI should have an option to show unknown tags (equivalent to the -u option on the command line).

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

pedro22

Quote from: Phil Harvey on February 03, 2017, 11:24:08 AM
Quote from: pedro22 on February 03, 2017, 10:52:55 AM

I wanted to delete the remaining entries - unless it does not affect the speed of reading the data.

I don't know what you mean.  Do you mean remove the other columns in ExifToolGUI?  I don't know about this.
I mean the other lines in ".ExifTool_config" or affect the performance ExifTool or ExifToolGUI because I noticed that the ET reads much more tags especially in the Composite

or whether to leave in ".ExifTool_config" this one line and it will work.

Phil Harvey

Ah, I see.  Here is the minimal config file:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::Composite' => {
        MyQuality => {
            Desire => {
                0 => 'PhotoshopQuality',
                1 => 'Quality',
            },
            ValueConv => '$prt[0] || $prt[1]',
        },
    },
);
1;  #end


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

pedro22

Many Thanks Phil!

A fantastic tool!

One more thing I have learned a little, but as I wanted to in the future to add other tags such a function where? - Or rather in which place.

Do these lines have to be repeated:
%Image::ExifTool::UserDefined = (
    'Image::ExifTool::Composite' => {

or insert almost the same after the line:
ValueConv => '$prt[0] || $prt[1]',

Phil Harvey

Your question should be answered by looking at the sample config 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 ($).