Better crop/resize cached images

This commit is contained in:
oobabooga 2023-04-04 22:52:15 -03:00
parent 65d8a24a6d
commit 80dfba05f3
4 changed files with 8 additions and 11 deletions

View file

@ -74,11 +74,8 @@ def generate_html():
path = Path(i)
if path.exists():
try:
image_html = f'<img src="file/{get_image_cache(path)}">'
break
except:
continue
image_html = f'<img src="file/{get_image_cache(path)}">'
break
container_html += f'{image_html} <span class="character-name">{character}</span>'
container_html += "</div>"