|
The option here is to create a user-defined tag to do the required
formatting:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::DICOM::Main' => {
'0018,605A' => {
Name => 'AcquisitionDuration',
VR => 'FL',
ValueConv => '$val * 1e6',
PrintConv => 'ConvertDuration($val)',
},
},
);
1; #end
My example above assumes that the units are microseconds,
so I multiply by 1e6 in the ValueConv to convert to seconds.
If the value is already in seconds, the ValueConv line can be
removed. (What are the units for this stored value?)
The PrintConv calls an exiftool function to format
the duration in a more readable way.
- Phil
|