From 55d50f13f27afb2a7d5e03f43eb28570cfa6c2b9 Mon Sep 17 00:00:00 2001 From: rikai Date: Wed, 17 Aug 2016 14:34:05 -0700 Subject: [PATCH] Pillow requires tobytes() now --- video_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_thread.py b/video_thread.py index 5a8120b..ed2af84 100644 --- a/video_thread.py +++ b/video_thread.py @@ -70,7 +70,7 @@ class Worker(QtCore.QObject): # write to out_pipe try: - out_pipe.stdin.write(im.tostring()) + out_pipe.stdin.write(im.tobytes()) finally: True @@ -89,4 +89,4 @@ class Worker(QtCore.QObject): out_pipe.wait() print("Video file created") self.progressBarUpdate.emit(100) - self.videoCreated.emit() \ No newline at end of file + self.videoCreated.emit()