ExifTool Forum

General => Metadata => Topic started by: EARS on April 02, 2019, 08:21:56 AM

Title: Editing unknown exif encoded in base 64
Post by: EARS on April 02, 2019, 08:21:56 AM
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:
(http://u88.n24.queensu.ca/home/alvarez_e/Desktop/These_LETG/Data_paper/sunshine_correction/test/test_image/modifie/IMG_190322_100739_0000_GRE.tif)

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...
    },
);




Title: Re: Editing unknown exif encoded in base 64
Post by: Phil Harvey on April 02, 2019, 08:38:22 AM
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
Title: Re: Editing unknown exif encoded in base 64
Post by: EARS on April 02, 2019, 08:55:02 AM
It works perfectly. Thanks a lot for your help !