lib/video.py in redmine_apijs-6.3.0 vs lib/video.py in redmine_apijs-6.4.0
- old
+ new
@@ -1,9 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf8 -*-
# Created J/26/12/2013
-# Updated J/23/07/2020
+# Updated D/27/09/2020
#
# Copyright 2008-2020 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# https://www.luigifab.fr/redmine/apijs
#
# This program is free software, you can redistribute it or modify
@@ -52,19 +52,19 @@
pixels = sorted(pixels, key=lambda t: t[0])
if (pixels[-1][1] > (127,127,127)): # white background, black player
dest = Image.new('RGBA', size, (255,255,255,0))
dest.paste(source, (offset_x, offset_y))
# https://stackoverflow.com/a/59082116 (replace only last lib)
- # /var/lib/gems/2.7.0/gems/redmine_apijs-6.3.0/lib » /var/lib/gems/2.7.0/gems/redmine_apijs-6.3.0/assets/images...
+ # /var/lib/gems/xyz/gems/redmine_apijs-xyz/lib devient /var/lib/gems/xyz/gems/redmine_apijs-xyz/assets/images/...
path = os.path.dirname(__file__)
path = ('/assets/images/apijs/player-black-' + str(size[0]) + '.png').join(path.rsplit('/lib', 1))
play = Image.open(path)
dest.paste(play, (0, 0), play)
else:
dest = Image.new('RGBA', size, (0,0,0,0))
dest.paste(source, (offset_x, offset_y))
# https://stackoverflow.com/a/59082116 (replace only last lib)
- # /var/lib/gems/2.7.0/gems/redmine_apijs-6.3.0/lib » /var/lib/gems/2.7.0/gems/redmine_apijs-6.3.0/assets/images...
+ # /var/lib/gems/xyz/gems/redmine_apijs-xyz/lib devient /var/lib/gems/xyz/gems/redmine_apijs-xyz/assets/images/...
path = os.path.dirname(__file__)
path = ('/assets/images/apijs/player-white-' + str(size[0]) + '.png').join(path.rsplit('/lib', 1))
play = Image.open(path)
dest.paste(play, (0, 0), play)
\ No newline at end of file