Due to backward compatibility issues and the closely-impossible-to-safely-use TIFFGetField(), we didn't manage to agree on enabling the DNG 1.6 tags. Cf https://gitlab.com/libtiff/libtiff/-/merge_requests/497 + https://gitlab.com/libtiff/libtiff/-/merge_requests/528#note_1544237415

You could possibly get support for them by manually registering the tag through the tag extension mechanism of TIFFMergeFieldInfo() (despite it being documented as don't use it)

Edit: Oh... I see now your point in tiff 4.4.0, the tag was present as TIFFTAG_CFAPATTERN, but during the DNG 1.6 update attempt during 4.5.1 development, it got moved elsewhere in the file and renamed TIFFTAG_EP_CFA_PATTERN, and was thus subject to being disabled at last minute before 4.5.1 release. So for that specific tag and TIFFTAG_CFAREPEATPATTERNDIM, definitely an oversight. We should perhaps re-enable it for 4.6.1 ... ?

Le 13/09/2023 à 21:07, Eike Gebauer a écrit :
Hi,

according to this comment https://gitlab.com/libtiff/libtiff/-/blob/v4.6.0/libtiff/tif_dirinfo.c#L216 the currently missing DNG Tags were supposed to be part of libTIFF 4.6. Currently I am unable to create TIFFs with TIFFTAG_EP_CFA_PATTERN using the system libTIFF version on Archlinux that is built from https://download.osgeo.org/libtiff/tiff-4.6.0.tar.gz.

Am I doing something wrong, is the remaining `#if 0` an oversight or has the functionality regressed since libtiff 4.4 and I need to link against an older version of the library?

Regards
Eike Gebauer


_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff

--
http://www.spatialys.com
My software is free, but my time generally not.

_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff

Reply via email to