使用pillow打开TIFF文件报tempfile.tif: Cannot read TIFF header错误的解决方案

使用pillow打开TIFF文件报tempfile.tif: Cannot read TIFF header错误的解决方案

如题,使用pillow的 Image.open(tiff file path)报错tempfile.tif: Cannot read TIFF header.的错误。

原因是 libtiff的版本问题。 将版本降到4.0.10即可解决。(conda install libtiff=4.0.10 or pip install libtiff=4.0.10)

相关推荐