summarylogtreecommitdiffstats
path: root/02-use-frombytes.patch
blob: 4bd9b5c13836b13a849aeb1785f652562b7e127b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -u -r a/macrofusion.py b/macrofusion.py
--- a/macrofusion.py	2015-10-25 12:58:58.621978780 +0100
+++ b/macrofusion.py	2015-10-25 12:59:55.896423282 +0100
@@ -623,7 +623,7 @@
 
     def pixbuf2Image(self, pb):
         width,height = pb.get_width(),pb.get_height()
-        return Image.fromstring("RGB",(width,height),pb.get_pixels() )
+        return Image.frombytes("RGB",(width,height),pb.get_pixels() )
 
     def put_files_to_the_list(self, fichiers):