From 37a131397f541446e15a5bbba1d7fd34c2cdf416 Mon Sep 17 00:00:00 2001
From: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
Date: Sun, 26 Oct 2025 01:00:48 +0200
Subject: [PATCH] Add image type to high res helper
---
helper.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/helper.py b/helper.py
index b8c90be2..4a4d4dbe 100644
--- a/helper.py
+++ b/helper.py
@@ -184,8 +184,8 @@ def high_res_img(ctx, url, optional_attributes=None, scale='1.5x', alt_formats=(
alt_high_res_url = f"{url_high_res.rsplit('.', maxsplit=1)[0]}.{alt_format}"
tags.append(
- ''.format(
- url=alt_url, url_high_res=alt_high_res_url, scale=scale
+ ''.format(
+ url=alt_url, url_high_res=alt_high_res_url, scale=scale, type=alt_format
)
)