Commit ee4a3dc8a for imagemagick.org
commit ee4a3dc8a00cb2522316565ef7199713dd0ab405
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Mon Oct 5 23:09:16 2026 +0200
Honor explicit TIFF selection when reading DNG-tagged files (#9001)
diff --git a/coders/tiff.c b/coders/tiff.c
index 318e16567..4c421fdad 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -1259,7 +1259,8 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
image=DestroyImageList(image);
return((Image *) NULL);
}
- if (TIFFGetField(tiff,TIFFTAG_DNGVERSION,&dng_version) == 1)
+ if ((image_info->affirm == MagickFalse) &&
+ (TIFFGetField(tiff,TIFFTAG_DNGVERSION,&dng_version) == 1))
{
Image
*dng_image = (Image *) NULL;