diff options
| author | tassaron | 2017-05-18 19:14:27 -0400 |
|---|---|---|
| committer | tassaron | 2017-05-18 19:14:27 -0400 |
| commit | ff818836dd2221c544afe1fcc17369b17f90b0db (patch) | |
| tree | b654ca68fb946dc91cb30f4cb96ac0b933ca98ab /preview_thread.py | |
| parent | 01de150f7401a3f2640999298f9b6f1c0c7a101a (diff) | |
added ability to use an mp4 as the background
might not be the best way to do this (dumping all the video frames to a temp location), but it works for clips of a few minutes or less
Diffstat (limited to 'preview_thread.py')
| -rw-r--r-- | preview_thread.py | 11 |
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"], |
