Editing unknown exif encoded in base 64

Started by EARS, April 02, 2019, 08:21:56 AM

Previous topic - Next topic

EARS

Hi,

I'm trying to edit a particular Tag encoded in base 64 (IrradianceList) of a Tiff file (attached). This tag is unknown to Exiftool, so I tried to set up a configuration file (attached) but when I run the following command:

exiftool -IrradianceList="0" /home/user_EA/IMG_190322_100739_0000_GRE.tif

I get the following error message:

Can't find table Image::ExifTool::XMP::Camera
Warning: Sorry, IrradianceList is not writable
Nothing to do.


Do you have any suggestions?

Tiff for tests:


Configuration file is located in my Home directory and is named ".ExifTool_config":

# The %Image::ExifTool::UserDefined hash defines new tags to be added
# to existing tables.
%Image::ExifTool::UserDefined = (
    # All EXIF tags are added to the Main table, and WriteGroup is used to
    # specify where the tag is written (default is ExifIFD if not specified):
    'Image::ExifTool::XMP::Camera' => {
        # Example 1.  EXIF:NewEXIFTag
        0xd000 => {
            Name => 'IrradianceList',
            Writable => 'string',
        },
        # add more user-defined EXIF tags here...
    },
);





Phil Harvey

I think this will do what you want:

%Image::ExifTool::UserDefined = (
    # new XMP namespaces must be added to the Main XMP table:
    'Image::ExifTool::XMP::Main' => {
        Camera => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::Camera',
            },
        },
    },
);

%Image::ExifTool::UserDefined::Camera = (
    GROUPS        => { 0 => 'XMP', 1 => 'XMP-Camera', 2 => 'Camera' },
    NAMESPACE     => { 'Camera' => 'http://pix4d.com/camera/1.0/' },
    WRITABLE      => 'string', # (default to string-type tags)
    IrradianceList => { },
);

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

EARS

It works perfectly. Thanks a lot for your help !