From 55d50f13f27afb2a7d5e03f43eb28570cfa6c2b9 Mon Sep 17 00:00:00 2001 From: rikai Date: Wed, 17 Aug 2016 14:34:05 -0700 Subject: 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() -- cgit v1.2.3 From 2bd9557173e10d9d68e1cba9d78518e38bce4787 Mon Sep 17 00:00:00 2001 From: rikai Date: Wed, 17 Aug 2016 18:27:36 -0700 Subject: Update README to indicate the use of Pillow 3.3.0 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aac1e37..0d22041 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Download audio-visualizer-python from this repository and run it with `python3 m * Download and install Python 3.4 from [https://www.python.org/downloads/windows/](https://www.python.org/downloads/windows/) * Download and install PyQt4 for Python 3.4 and Qt4 from [http://www.riverbankcomputing.co.uk/software/pyqt/download](http://www.riverbankcomputing.co.uk/software/pyqt/download) * Download and install numpy from [http://www.scipy.org/scipylib/download.html](http://www.scipy.org/scipylib/download.html). There is an installer available, make sure to get the one for Python 3.4 -* Download and install Pillow from [https://pypi.python.org/pypi/Pillow/2.7.0](https://pypi.python.org/pypi/Pillow/2.7.0) +* Download and install Pillow from [https://pypi.python.org/pypi/Pillow/3.3.0](https://pypi.python.org/pypi/Pillow/3.3.0) * Download and install ffmpeg from [https://www.ffmpeg.org/download.html](https://www.ffmpeg.org/download.html). You can use the static builds. * Add ffmpeg to your system PATH environment variable. @@ -39,4 +39,4 @@ You can find an example video here: License ------- -audio-visualizer-python is licensed under the MIT license. \ No newline at end of file +audio-visualizer-python is licensed under the MIT license. -- cgit v1.2.3