adding the meta data of another image

Started by Murph21, December 06, 2022, 10:49:14 AM

Previous topic - Next topic

Murph21

Hello again,

I came across another problem. Namely how to change the values of XMP-MicaSense:DarkRowValues after copying into destination image. This might be unusual but since I am transforming my image from 12bit to 16bit I like to update the DarkRowValues also into 16bit range.

I tried following code to find the tags specific address:
c:\exiftool>exiftool -G1 -darkrowvalue "D:\Users\BKU\MinaMontakhabVijouei\Desktop\transformed_16bit_imags\IMG_0000_1.tif"
[XMP-MicaSense] Dark Row Value                  : 304, 304, 305, 306

and the following codes to update the value (to an arbitrary number for testing), which gives error of not recognizing the tag:
c:\exiftool>exiftool  -XMP-MicaSense:DarkRowValue="1,1,1,1" "D:\Users\BKU\MinaMontakhabVijouei\Desktop\transformed_16bit_imags\IMG_0000_1.tif"
Warning: Tag 'XMP-MicaSense:DarkRowValue' is not defined
Nothing to do.

c:\exiftool>exiftool  -XMP-MicaSense:DarkRowValue=[1,1,1,1] "D:\Users\BKU\MinaMontakhabVijouei\Desktop\transformed_16bit_imags\IMG_0000_1.tif"
Warning: Tag 'XMP-MicaSense:DarkRowValue' is not defined
Nothing to do.

c:\exiftool>exiftool  -XMP:DarkRowValue=[1,1,1,1] "D:\Users\BKU\MinaMontakhabVijouei\Desktop\transformed_16bit_imags\IMG_0000_1.tif"
Warning: Tag 'XMP:DarkRowValue' is not defined
Nothing to do.

c:\exiftool>exiftool  -DarkRowValue=[1,1,1,1] "D:\Users\BKU\MinaMontakhabVijouei\Desktop\transformed_16bit_imags\IMG_0000_1.tif"
Warning: Tag 'DarkRowValue' is not defined
Nothing to do.

Is it possible to change the darkrowvalues at all? or is there another way to change it?

Thank you very much in advance!

-Mina

Phil Harvey

Hi Mina,

The MicaSense XMP tags are not defined by ExifTool.  You will have to add user-defined tags to be able to write these.  See the sample config file for examples of how to create user-defined XMP tags.  Specifically, see NewXMPxxxTag1, but you probably want "Writable" to be a simple "string".

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