yiyixuxu commited on
Commit
cc4cb86
1 Parent(s): 00e7c2b
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -109,12 +109,12 @@ def captioned_strip(images, caption=None, times=None, rows=1):
109
  img.paste(img_, (i // rows * w, increased_h + (i % rows) * h))
110
  if caption is not None:
111
  draw = ImageDraw.Draw(img)
112
- font = ImageFont.truetype(
113
- "/usr/share/fonts/truetype/liberation2/LiberationMono-Bold.ttf", 16
114
- )
115
- font_small = ImageFont.truetype(
116
- "/usr/share/fonts/truetype/liberation2/LiberationMono-Bold.ttf", 12
117
- )
118
  draw.text((20, 3), caption, (255, 255, 255), font=font)
119
  for i,ts in enumerate(times):
120
  draw.text((
 
109
  img.paste(img_, (i // rows * w, increased_h + (i % rows) * h))
110
  if caption is not None:
111
  draw = ImageDraw.Draw(img)
112
+ font = ImageFont.load("arial.pil", 16)
113
+ font_small = ImageFont.load("arial.pil", 12)
114
+ #font = ImageFont.truetype(
115
+ # "/usr/share/fonts/truetype/liberation2/LiberationMono-Bold.ttf", 16
116
+ #)
117
+ #font_small = ImageFont.truetype("/usr/share/fonts/truetype/liberation2/LiberationMono-Bold.ttf", 12)
118
  draw.text((20, 3), caption, (255, 255, 255), font=font)
119
  for i,ts in enumerate(times):
120
  draw.text((