images: properly scaled

This commit is contained in:
Laurier Loiselle 2023-04-21 13:26:57 -04:00
parent f3b50928dc
commit 54f7499ce0
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

View File

@ -1,7 +1,20 @@
{% if image %} {% if image %}
<table border="0" cellborder="0" cellpadding="3" cellspacing="0" > <table border="0" cellborder="0" cellpadding="3" cellspacing="0" >
<tr> <tr>
{% if image.fixedsize %}
<td balign="left">
<table border="0" cellborder="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="{{ image.width }}" height="{{ image.height }}" fixedsize="true"><img scale="{{ image.scale }}" src="{{ image.src }}" /></td>
</tr>
</table>
</td>
{% else %}
<td balign="left" sides="TLR"><img scale="{{ image.scale }}" src="{{ image.src }}" /></td> <td balign="left" sides="TLR"><img scale="{{ image.scale }}" src="{{ image.src }}" /></td>
{% endif %}
</tr> </tr>
{% if image.caption %} {% if image.caption %}
<tr> <tr>