Better crop/resize cached images
This commit is contained in:
parent
65d8a24a6d
commit
80dfba05f3
4 changed files with 8 additions and 11 deletions
|
@ -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>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue