fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5899a0f
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 21 May 2020 12:15:20 +0000
(14:15 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 21 May 2020 12:15:20 +0000
(14:15 +0200)
src/youtube/thumbnail.py
patch
|
blob
|
history
diff --git
a/src/youtube/thumbnail.py
b/src/youtube/thumbnail.py
index
a6cd9c5
..
745894b
100644
(file)
--- a/
src/youtube/thumbnail.py
+++ b/
src/youtube/thumbnail.py
@@
-53,6
+53,7
@@
def draw_version(img, d, context, get_font_path):
realheight = draw.textsize(line, font=font)[1]
if cursor + realheight > newimg.size[1]:
return False
realheight = draw.textsize(line, font=font)[1]
if cursor + realheight > newimg.size[1]:
return False
+ draw.text((0, cursor), line, font=font, fill=item.get('color'))
cursor += item['line-height']
img.paste(newimg, (d.get('x', 0), d.get('y', 0)), newimg)
cursor += item['line-height']
img.paste(newimg, (d.get('x', 0), d.get('y', 0)), newimg)