manager: do not upscale page picture (#45510)
This commit is contained in:
parent
7d6600b276
commit
04ad825760
|
@ -76,7 +76,7 @@
|
|||
<label>{% trans 'Picture:' %}</label>
|
||||
{% if object.picture %}
|
||||
{% if object.picture_extension != '.svg' %}
|
||||
{% thumbnail object.picture "320x240" crop="50% 25%" as im %}
|
||||
{% thumbnail object.picture "320x240" crop="50% 25%" upscale=False as im %}
|
||||
<img class="page-picture" src="{{im.url}}"/>
|
||||
{% endthumbnail %}
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in New Issue