From 8102e461d107adfb8958bb7a8e28a9ca9ff540ee Mon Sep 17 00:00:00 2001 From: bai Date: Tue, 28 Jul 2020 05:33:19 -0400 Subject: Arreglado error al usar spoilers en miniaturas --- cgi/img.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cgi/img.py b/cgi/img.py index 9bc25b7..48d4277 100644 --- a/cgi/img.py +++ b/cgi/img.py @@ -108,7 +108,7 @@ def processImage(post, data, t, originalname, spoiler=False): "%dx%d" % (file_thumb_width, file_thumb_height), "-blur", "0x12", "-gravity", "center", "-fill", "rgba(0,0,0, .6)", "-draw", "rectangle 0,%d,%d,%d" % ((file_thumb_height/2)-10, file_thumb_width, (file_thumb_height/2)+7), - "-fill", "white", "-annotate", "0", "Alerta de spoiler", + "-fill", "white", "-font", "Liberation-Sans", "-annotate", "0", "Alerta de spoiler", "-quality", str(Settings.THUMB_QUALITY), file_thumb_path]) elif used_filetype['mime'][:5] == 'audio': # we do an exception and use png for audio waveform thumbnails since they @@ -135,7 +135,8 @@ def processImage(post, data, t, originalname, spoiler=False): "white", "-flatten", "-resize", "%dx%d" % (file_thumb_width, file_thumb_height)] if spoiler: args += ["-blur", "0x12", "-gravity", "center", "-fill", "rgba(0,0,0, .6)", "-draw", "rectangle 0,%d,%d,%d" % ( - (file_thumb_height/2)-10, file_thumb_width, (file_thumb_height/2)+7), "-fill", "white", "-annotate", "0", "Alerta de spoiler"] + (file_thumb_height/2)-10, file_thumb_width, (file_thumb_height/2)+7), "-fill", "white", + "-font", "Liberation-Sans", "-annotate", "0", "Alerta de spoiler"] args += ["-quality", str(Settings.THUMB_QUALITY), file_thumb_path] # generate thumbnails -- cgit v1.2.1-18-gbd029