feat: crop images before optimizing them to ensure proper aspect ratio
This commit is contained in:
parent
7a3a7d65e4
commit
605baf5836
4 changed files with 94 additions and 28 deletions
|
@ -8,7 +8,7 @@
|
|||
<div class="avatar__wrapper flex--centered">
|
||||
{% capture authorAlt %}{{ mention.author.name | escape }}{% endcapture %}
|
||||
{% capture fallbackIcon %}{% tablericon "user" authorAlt %}{% endcapture %}
|
||||
{% image mention.author.photo, authorAlt, 'avatar__image', 'lazy', 'rounded', fallbackIcon %}
|
||||
{% image mention.author.photo, authorAlt, 'avatar__image', 'lazy', 'square', fallbackIcon %}
|
||||
</div>
|
||||
</a>
|
||||
<div class="comment">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="avatar__wrapper flex--centered">
|
||||
{% capture authorAlt %}{{ mention.author.name | escape }}{% endcapture %}
|
||||
{% capture fallbackIcon %}{% tablericon "user" authorAlt %}{% endcapture %}
|
||||
{% image mention.author.photo, authorAlt, 'avatar__image', 'lazy', 'rounded', fallbackIcon %}
|
||||
{% image mention.author.photo, authorAlt, 'avatar__image', 'lazy', 'square', fallbackIcon %}
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
Reference in a new issue