Hi everyone,
I'm facing a strange issue with using custom tags from ExifTool within CollectiveAccess, and I could really use some help!
I’ve defined a custom tag in my /root/.ExifTool_config like this:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Exif::Main' => {
0xd010 => {
Name => 'example',
Writable => 'string',
WriteGroup => 'IFD0',
},
},
);
1;
When the value for this tag exceeds 60 characters, it gets cut off and ends with [...]. Oddly enough, this issue doesn’t happen if i run" exiftool 'file_path' " in my terminal on my providence server. But when I import files and I'm passing the exact config file like this:
2024-10-01 4:53:27 - DEBUG --> Executing command: '/usr/local/bin/exiftool -config /root/.ExifTool_config -json -a -u -g1 '/var/www/html/ca/import/ty/G37872BE507.tiff' 2> /dev/null'
I still get the truncated value in the import log of content tree. However, in Providence's object editor under Media Metadata, when I use the same ExifTool config with my custom tag, I see the full value, uncropped. If I don’t use the config file, the value is cut off in the media metadata as well.
Moreover, the extracted tag always shows up as 'UndefinedTag:0xD010', even though I’ve defined the tag with a specific name. In my import mapping (xlsx file), if I reference the tag as Mapping IFD0/example, it doesn’t get detected. But if I reference Mapping IFD0/Exif_0xD010, it gets detected but cut off after 60 characters.
Strangely, when I import PDFs with a custom tag defined like this:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::XMP:😛DF' => {
Even without having the config on my Providence server, everything works fine. The values aren't truncated, and it behaves as expected.
I’ve managed to bypass this issue by using a widely defined tag like the Artist tag (0x013b). The values are not cut off, but this isn’t an ideal solution since the data I store there isn’t actually the artist's name. I’m concerned about running into problems in the future if I need more long tags.
Any insights or suggestions on how to fix this would be greatly appreciated!
Thanks in advance!
Piotr