Commit 99bda8849 for imagemagick.org

commit 99bda8849835b9606db9553d3b400b3c26e3f59a
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sat Mar 14 09:56:06 2026 -0400

    https://github.com/ImageMagick/ImageMagick/discussions/8603

diff --git a/coders/tiff.c b/coders/tiff.c
index 9eb502ca8..9afb946d4 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -3832,9 +3832,14 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
     {
       case FloatingPointQuantumFormat:
       {
+        double
+          max = 1.0,
+          min = 0.0;
+
         (void) TIFFSetField(tiff,TIFFTAG_SAMPLEFORMAT,SAMPLEFORMAT_IEEEFP);
-        (void) TIFFSetField(tiff,TIFFTAG_SMINSAMPLEVALUE,quantum_info->minimum);
-        (void) TIFFSetField(tiff,TIFFTAG_SMAXSAMPLEVALUE,quantum_info->maximum);
+        (void) GetImageRange(image,&min,&max,exception);
+        (void) TIFFSetField(tiff,TIFFTAG_SMINSAMPLEVALUE,min);
+        (void) TIFFSetField(tiff,TIFFTAG_SMAXSAMPLEVALUE,max);
         break;
       }
       case SignedQuantumFormat: