Add support for modern image formats (WebP and AVIF) and implement image conversion commands
This commit is contained in:
parent
7128f19b9e
commit
477bb753ae
15 changed files with 629 additions and 93 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% load image_tags %}
|
||||
{% block title %}
|
||||
Games - Grid View
|
||||
{% endblock title %}
|
||||
|
|
@ -27,12 +28,7 @@
|
|||
text-align: center">
|
||||
<div style="margin-bottom: 0.25rem;">
|
||||
{% if item.game.box_art_best_url %}
|
||||
<img src="{{ item.game.box_art_best_url }}"
|
||||
alt="Box art for {{ item.game.display_name }}"
|
||||
loading="lazy"
|
||||
width="180"
|
||||
height="240"
|
||||
style="border-radius: 8px" />
|
||||
{% picture item.game.box_art_best_url alt="Box art for "|add:item.game.display_name width=180 height=240 style="border-radius: 8px" %}
|
||||
{% else %}
|
||||
<div style="width: 180px;
|
||||
height: 240px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue