Reduce DPI for print

This commit is contained in:
Tobias 2019-01-17 15:44:40 +13:00
parent d78326397d
commit 5a40bd00f7

View file

@ -1157,7 +1157,7 @@ def badge(request, user_id, format="png"):
return render_badge(user, format=format) return render_badge(user, format=format)
def _convert_img(img, outformat="png", dpi=600, width=None): def _convert_img(img, outformat="png", dpi=300, width=None):
if hasattr(img, "encode"): #a string, or a SafeText if hasattr(img, "encode"): #a string, or a SafeText
img=img.encode() img=img.encode()