DPReview.com is closing April 10th - Find out more

how to batch change "unique camera Model" in DNG EXIF value

Started Jan 3, 2021 | Discussions thread
Greybeard2017
Greybeard2017 Veteran Member • Posts: 3,112
Re: how to batch change "unique camera Model" in DNG EXIF value
2

VfxByArt wrote:

Hey gang,

I'm encountering a problem where I can change the "Camera Model" value in the EXIF data of some DNG files but NOT the "Unique Camera model" value in the same EXIF file. Working on a Mac, btw.

Some history....

I have Fujifilm xt3 files that I want labeled "Xt4" to access the later film simulations fuji developed in software like lightroom.

I converted fuji files using iridient X Transformer.

I have a set of fuji converted DNG's before and after I relabeled them as XT4's.

So I went back and used METAimage to batch change the camera model on some fuji DNG's to XT4

When I loaded them to Lightroom, while the meta data says xt4, the later film sims were not available.

The fuji files I had renamed the camera model to xt4 in later transfers to DNG using Iridient x Transforer relabel feature worked in lightroom.

So I suspected the there is a EXIF value that I missed...

So I loaded two DNG files into apple preview:

1) A DNG that was camera model relabeled at the time of DNG conversion using iridient x transformer,

2) A DNG the was converted with iridient x transfer BUT non relabeled, and later relabeled using the METAimage.

Under the "show inspector" tool I noticed a discrepancy:

There were two entries for camera models! Under the TIFF TAB is says "Model" and under the DNG TAB it says "Unique Camera Model"

The image that was relabeled at the point of RAF to DNG conversion using Iridient had both the "Model" and "Unique Camera Model" correctly relabeled to "XT4"

The image that was relabled AFTER the RAF to DNG Iridient conversion had different values. The "Model" was XT4, the "Unique Camera Model" was XT3.

It appears that while lightroom reports the metdata as the xt4 camera, the profiles appears to follow the "Unique Camera Model" tag.

I look online how to change the "unique camera Model" using an exif editor, and I can't find anything. When I load the image in EXIF editors like METAimage or Phots Exif Editor, it appears to read only the "model" tag, it does not show the "unique Camera Model" field to change.

Hence the question.. does anyone know how to batch edit the "unique Camera model" in the exif data? thanks!

I kind of lost track of the problem part way through this but you can use Exiftool to modify (most) Exif tags.

https://exiftool.org/

Once you have Exiftool installed on your Mac you would go into the terminal app and change directory to the place where you have your dng files.

=============================================

Type : exiftool -s -a -G1 dngfilename.dng

that will show you all the tags for one of your files

=============================================

Type: exiftool -FileName -Model -UniqueCameraModel -T -ext dng .

that will show you the current values of Model and UniqueCameraModel

=============================================

Lets assume you want to modify your "uniqueCameraModel" to XT4 - type the following:

exiftool -uniqueCameraModel="Fujifilm T4" -ext dng .

the -ext dng makes sure you only change dng files

the . at the end means modify everything in this directory

a copy of each file is kept with suffix "_original" - if you have thoroughly tested and don't need that backup copy use this version of the command:

exiftool -uniqueCameraModel="Fujifilm T4" -overwrite_original -ext dng .

 Greybeard2017's gear list:Greybeard2017's gear list
Fujifilm X-T30 Fujifilm X-S10 Fujifilm X-H2S
Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark MMy threads
Color scheme? Blue / Yellow