Skip to content

Commit

Permalink
fastposter v2.8.3 发布 电商海报生成器
Browse files Browse the repository at this point in the history
更新
 - 优化poster|dao代码
 - 说明文档更新
 - 加载图片超时异常日志
 - 支持背景透明
  • Loading branch information
tangweixin committed Jun 14, 2022
1 parent 1369a1d commit f179a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/poster.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def drawImg(draw, d, bg):

def drawBg(item):
url, w, h, c = str(item['bgUrl']), item['w'], item['h'], item['bgc']
c = '#fafbfc' if c == '' else c
c = '#fafbfc00' if c == '' else c
if not url.strip():
img = Image.new('RGB', (w, h), c)
img = Image.new('RGBA', (w, h), c)
else:
img = fetchImg(url)
img = img.resize((w, h), Image.ANTIALIAS)
Expand Down

0 comments on commit f179a97

Please sign in to comment.