PIL模块操作图片报image file is truncated和Decompressed Data Too Large

      发布在:Python技术      评论:0 条评论

PIL模块操作图片报image file is truncated和Decompressed Data Too Large错误解决方法

from PIL import Image
Image.LOAD_TRUNCATED_IMAGES = True
Image.MAXBLOCK = 655360
Image.SAFEBLOCK = 1024 * 1024*10


热门推荐