diff --git a/src/imageio/imageio_tiff.c b/src/imageio/imageio_tiff.c index 0fb60dc5e003..701708ed59cb 100644 --- a/src/imageio/imageio_tiff.c +++ b/src/imageio/imageio_tiff.c @@ -451,8 +451,8 @@ dt_imageio_retval_t dt_imageio_open_tiff(dt_image_t *img, const char *filename, return DT_IMAGEIO_CACHE_FULL; } - // flag the image buffer properly depending on sample format - if(t.sampleformat == SAMPLEFORMAT_IEEEFP) + // Flag the image properly depending on bit depth + if(t.bpp > 8) { // HDR TIFF t.image->flags &= ~DT_IMAGE_LDR;