ExifTool Forum

General => Metadata => Topic started by: paulinventome on January 03, 2014, 06:10:58 AM

Title: Can't write Bayer Green Split tag, is it possible?
Post by: paulinventome on January 03, 2014, 06:10:58 AM
Hi,

I have some cDNGs here with odd looking values in the Bayer Green Split tag but i am unable to update the value, i'm using

exiftool -BayerGreenSplit=0 test.dng

I've managed to update Camera Serial Number by doing the same kind of thing exiftool -CameraSerialNumber=test test.dng and that did update.

So perhaps this tag cannot be updated?

thanks
Paul
Title: Re: Can't write Bayer Green Split tag, is it possible?
Post by: Phil Harvey on January 03, 2014, 07:26:20 AM
Hi Paul,

If you check the EXIF tag name documentation (https://exiftool.org/TagNames/EXIF.html), you will see that BayerGreenSplit is writable, but the default write location is SubIFD.  So the tag will only be written if the SubIFD exists (because ExifTool will not create a new SubIFD).  Use the -G1 option when extracting to see where it is in your image, and write to the same location.

- Phil
Title: Re: Can't write Bayer Green Split tag, is it possible?
Post by: paulinventome on January 03, 2014, 09:12:00 AM
Thanks Phil,

I've only just started using exiftool for forgive me ignorance :)

The -G1 options shows the BayerGreenSplit as

[IFD0] BayerGreenSplit : 5000

along with lots of other tags with the same IFD0

Does that help? What would i need to do to update some of these tags?

thanks
Paul
Title: Re: Can't write Bayer Green Split tag, is it possible?
Post by: Phil Harvey on January 03, 2014, 10:13:11 AM
Hi Paul,

The command would look like this then:

exiftool -ifd0:bayergreensplit=0 test.dng

- Phil