Removed unnecessary load()

This commit is contained in:
Andrew Murray 2021-06-22 20:42:49 +10:00
parent b6b362c807
commit 9192a33b38

View File

@ -1730,7 +1730,6 @@ class Image:
if self.mode not in ("L", "LA", "P", "PA"):
raise ValueError("illegal image mode")
self.load()
if isinstance(data, ImagePalette.ImagePalette):
palette = ImagePalette.raw(data.rawmode, data.palette)
else: