mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 20:27:06 +03:00
Restored append_images
This commit is contained in:
parent
5ef382f612
commit
ea98bb6163
|
@ -325,9 +325,10 @@ def _save(im, fp, filename):
|
|||
size_str = ["ic07", "ic08", "ic09", "ic11", "ic12", "ic13", "ic14", "ic10"]
|
||||
file_size = 0
|
||||
entries = []
|
||||
provided_images = {im.width: im for im in im.encoderinfo.get("append_images", [])}
|
||||
for index, s in enumerate(sizes):
|
||||
temp = io.BytesIO()
|
||||
nb = im.resize((s, s))
|
||||
nb = provided_images[s] if s in provided_images else im.resize((s, s))
|
||||
nb.save(temp, "png")
|
||||
file_size += len(temp.getvalue())
|
||||
entries.append(
|
||||
|
|
Loading…
Reference in New Issue
Block a user