Cannot load tiff with JPEG Compression

Please see below the exiftool information about the tiff file I am trying to load using OpenCV:

MIME Type                       : image/tiff
[File]          Exif Byte Order                 : Little-endian (Intel, II)
[IFD0]          Subfile Type                    : Full-resolution image
[IFD0]          Image Width                     : 1654
[IFD0]          Image Height                    : 2339
[IFD0]          Bits Per Sample                 : 8 8 8
[IFD0]          Compression                     : JPEG
[IFD0]          Photometric Interpretation      : YCbCr
[IFD0]          Strip Offsets                   : 358
[IFD0]          Orientation                     : Horizontal (normal)

I am using the imreadmulti method but it returns null for this file. Other tiff files work fine.

Can someone advise what could be the reason and if there is any way to enable more debug information?

This reproduces on both Windows and Linux.

could you provide this tiff file, or any such file that also can’t be read?

It seems OpenCV’s imreadmulti method may not support TIFF files with JPEG compression. However use alternative libraries or methods to handle the loading of TIFF files with JPEG compression such as Pillow
That uses PIL’s Image.open method to attempt loading the image, providing an alternative to OpenCV’s imreadmulti.
Ex: code
from PIL import Image

# Load the TIFF file using PIL
image = Image.open('your_tiff_file.tiff')

if image is None:
    print("Failed to load the image.")
else:
    print("Image loaded successfully.")

# Display the image (if loaded)
if image is not None:
    image.show()

Also, you can manually use any third-party tool like jpeg compressor that support many other image formats.