PIL.IMage 读取图片错误: image file could not be identified because WEBP support not installed .
出现这个问题的原因是:Image.open的返回值是:<PIL.WebPImagePlugin.WebPImageFile image mode=RGB size=640x905 at 0x7FB066FE7710>,
而正常的图片的返回值是:<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1024x566 at 0x7FB0657F9B50>
对于旧版本的Pillow来说,虽然有些图的后缀是jpg,但是本质格式还是web
原创
2021-11-26 12:21:40 ·
2187 阅读 ·
1 评论