diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-12-03 22:48:55 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-12-03 22:48:55 +0100 |
commit | b5287ed17bda10877d84ba86fcf148ee74b93b9b (patch) | |
tree | 69552b5cf0ce7b0cd9bd81535d4f68468c801cf0 /rapid/thumbnail.py | |
parent | 85d4767b9465501fb8829b02dda18689ab2ac284 (diff) |
Imported Upstream version 0.4.11upstream/0.4.11
Diffstat (limited to 'rapid/thumbnail.py')
-rw-r--r-- | rapid/thumbnail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rapid/thumbnail.py b/rapid/thumbnail.py index ba72828..e10ae3d 100644 --- a/rapid/thumbnail.py +++ b/rapid/thumbnail.py @@ -129,10 +129,10 @@ class PicklablePIL: def __init__(self, image): self.size = image.size self.mode = image.mode - self.image_data = image.tostring() + self.image_data = image.tobytes() def get_image(self): - return Image.fromstring(self.mode, self.size, self.image_data) + return Image.frombytes(self.mode, self.size, self.image_data) def get_pixbuf(self): return image_to_pixbuf(self.get_image()) |