python PIL打开较大的tif影像时出错-OSError: cannot identify image file Image.open


问题:

  使用PIL打开较大的tif影像(>1GB)出错;

  错误提示: OSError: cannot identify image file  Image.open

解决方法:

  将tif影像转换为其它格式的影像数据,比如png格式;数据大小没变,数据信息未损失

  使用PIL image.open()可以打开


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM