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...
},
);
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
It works perfectly. Thanks a lot for your help !