diff options
author | bai | 2020-07-28 05:33:19 -0400 |
---|---|---|
committer | bai | 2020-07-28 05:33:19 -0400 |
commit | 8102e461d107adfb8958bb7a8e28a9ca9ff540ee (patch) | |
tree | 837f8832336d2af8bedd576b52f0df8b115bece7 /cgi | |
parent | 6513d960466a7819fbf2bf3f473c8133621ddaa9 (diff) | |
download | weabot-8102e461d107adfb8958bb7a8e28a9ca9ff540ee.tar.gz weabot-8102e461d107adfb8958bb7a8e28a9ca9ff540ee.tar.xz weabot-8102e461d107adfb8958bb7a8e28a9ca9ff540ee.zip |
Arreglado error al usar spoilers en miniaturas
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/img.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |