From 58600b1dcee523b3f79999e34b0bfd1ea4ea9d5c Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 11 Jul 2019 23:05:43 -0500 Subject: [PATCH] now --- app/routes.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/routes.py b/app/routes.py index 6f9dbbe..2f6c14e 100644 --- a/app/routes.py +++ b/app/routes.py @@ -44,15 +44,7 @@ def create_panzer(string): draw.text((10, 20), 'Oh panzer of the lake, what is your wisdom?', font=font1) font2 = ImageFont.truetype('./app/static/arial.ttf', size=30) - - w, h = img.size - lines = wrap(string, width=400) - y_text = h - for line in lines: - width, height = font2.getsize(line) - draw.text(((w - width) / 2, y_text), line, font=font2) - y_text += height - # draw.text((250, 500), string, font=font2) + draw.text((250, 500), string, font=font2) return img