aboutsummaryrefslogtreecommitdiff
path: root/preview_thread.py
diff options
context:
space:
mode:
authormartin2017-05-22 10:47:55 +0200
committerGitHub2017-05-22 10:47:55 +0200
commite507cf0b6c22a9be880c22dd78723c007de8b73c (patch)
tree2541d0570c43237f8faff97922f687d9d1d06bc4 /preview_thread.py
parent01de150f7401a3f2640999298f9b6f1c0c7a101a (diff)
parente77199219521ab819730574c17a819c7e2bfe84d (diff)
Merge pull request #13 from tassaron2/master
Added the ability to use an mp4 as the background image
Diffstat (limited to 'preview_thread.py')
-rw-r--r--preview_thread.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/preview_thread.py b/preview_thread.py
index 9dc7e4c..5bad653 100644
--- a/preview_thread.py
+++ b/preview_thread.py
@@ -43,8 +43,17 @@ class Worker(QtCore.QObject):
except Empty:
continue
+ bgImage = self.core.parseBaseImage(\
+ nextPreviewInformation["backgroundImage"],
+ preview=True
+ )
+ if bgImage == []:
+ bgImage = ''
+ else:
+ bgImage = bgImage[0]
+
im = self.core.drawBaseImage(
- nextPreviewInformation["backgroundImage"],
+ bgImage,
nextPreviewInformation["titleText"],
nextPreviewInformation["titleFont"],
nextPreviewInformation["fontSize"],