我猜
copy.copy()对于PIL
Image类不起作用。尝试使用
Image.copy()它,因为它存在是有原因的:
image = Image.open(path)image = image.crop((left, upper, right, lower))for size in sizes: temp = image.copy() # <-- Instead of copy.copy(image) temp.thumbnail((size, height), Image.ANTIALIAS) temp.save('%s%s%s.%s' % (path, name, size, format), quality=95)


