Image.open()报错,提示 image file is truncated (XX bytes not processed)
来源:互联网 发布:淘宝规定卖家发货时间 编辑:程序博客网 时间:2024/05/29 19:06
在处理图片数据的时候,如果Image.open()
报错,就不保存图片,
from PIL import Imagetry: img = Image.open(imgname) img.save(save_name)except: continue
结果在读取处理后的图片的时候,还是报错,提示 image file is truncated (XX bytes not processed)
参考image file is truncated (41 bytes not processed)解决方法,
加上:
from PIL import ImageFileImageFile.LOAD_TRUNCATED_IMAGES = True
阅读全文
0 0
- Image.open()报错,提示 image file is truncated (XX bytes not processed)
- image file is truncated (41 bytes not processed)解决方法
- Python PIL Image "image file is truncated"问题解决
- React Native报错: Image(View, Text....) is not defined.
- React Native报错: Image(View, Text....) is not defined.
- 编译提示 file not recognized: File truncated
- Image.open() cannot identify image file
- Image file was not found.
- Bitmap image is not valid
- 【Mysql】安装完成,无法写入配置文件,提示configuration file template XX be processed and written to XX Error code-1
- 一键ghost提示“Cannot open image file'1.4 I:/~1/c_pan.gho'”解决方法
- Message: ata0-0: could not open hard drive image file '30M.sample'
- qemu: could not open disk image
- qemu: could not open disk image
- virt-install could not open disk image
- virt-install could not open disk image
- sqlite数据库报错:database disk image is malformed
- Openwrt 编译报错:rootfs image is too big解决方法
- 相对路径绝对路径分析
- 霍夫变换圆形检测(基于OpenCV&Python)
- 人脸检测 各种 demo/api体验
- 论文复现
- HDU 1385 Minimum Transport Cost(Floyd+路径输出)
- Image.open()报错,提示 image file is truncated (XX bytes not processed)
- 静态双向链表的单数组实现
- 2017-8-27C#面向对象总结
- 人脸识别相关
- 204. Count Primes
- MongoDB的常见问答—MongoDB的基本原理
- python 循环与列表生成式
- 最大匹配/最小点覆盖/最小边覆盖
- Orange'S 第三章第二节实验