Reduce DPI for print
This commit is contained in:
parent
d78326397d
commit
5a40bd00f7
1 changed files with 1 additions and 1 deletions
2
vendor/registrasion/registrasion/views.py
vendored
2
vendor/registrasion/registrasion/views.py
vendored
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue