I encounter a problem for loading tiff images using PIL in python. I downloaded the test tiff files from : https://libtiff.gitlab.io/libtiff/images.html
For example, trying to load “zackthecat.tif” with the following code :
from PIL import Image
import numpy as np
im = np.array(Image.open('zackthecat.tif'))
Absolutly no errors, but soon after I see : Restarting kernel…
I have libtiff installed, as well as imagecodecs
I encounter this issue on Windows 10, Python 3.11.7, IPython 8.20.0.
I tried both spyder and in jupyter notebook. I tried to downgrade libtiff from 4.5.0 to 4.4.0 with no changes.
I tried to load the tiff image using matplotlib (plt.imread), fabio… No success.
Many thanks in advance for your help!
Alexos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.