mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-870 - add physical size in technical informations
This commit is contained in:
@@ -25,6 +25,18 @@
|
||||
{% if width is not none and height is not none %}
|
||||
{{ width ~ " x " ~ height }}
|
||||
{% endif %}</dd>
|
||||
{% set document = record.get_subdef('document') %}
|
||||
{% if document and document.get_width() and document.get_height() %}
|
||||
<dt> </dt>
|
||||
<dd>{% if record.get_type() == 'image' and document.get_width() and document.get_height() %}
|
||||
{% set size_w = (document.get_width() * (254/100) / 300) %}
|
||||
{% set size_h = (document.get_height() * (254/100) / 300) %}
|
||||
{{ size_w|round(1) }} x {{ size_h|round(1) }} cm (300dpi)
|
||||
{% set size_w = (document.get_width() * (254/100) / 72) %}<br/>
|
||||
{% set size_h = (document.get_height() * (254/100) / 72) %}
|
||||
{{ size_w|round(1) }} x {{ size_h|round(1) }} cm (72dpi)
|
||||
{% endif %}</dd>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dl>
|
||||
<hr/>
|
||||
@@ -132,4 +144,4 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
</dl>
|
||||
</dl>
|
||||
|
Reference in New Issue
Block a user