From 4bfd10baaaf54b3d4126d9cce8127fae30b9d690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 17 Oct 2018 05:27:27 +0200 Subject: [PATCH] imgconverter: allow icons up to 2048x2048 Recently some applications ships with large icons like 1024x1024 (Signal-desktop for example). To not degrade any fancy HiDPI 8K experience, allow for that, instead of downscaling. The max icon size is only anti-DoS protection anyway. --- imgconverter/qubesimgconverter/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgconverter/qubesimgconverter/__init__.py b/imgconverter/qubesimgconverter/__init__.py index abf6bdc..75ef5a4 100644 --- a/imgconverter/qubesimgconverter/__init__.py +++ b/imgconverter/qubesimgconverter/__init__.py @@ -44,7 +44,7 @@ MAX_HEIGHT = 5120 # current max raster icon size in hicolor theme is 256 as of 2013/fedora-18 # beyond that one probably shall use scalable icons # (SVG is currently unsupported) -ICON_MAXSIZE = 512 +ICON_MAXSIZE = 2048 # header consists of two decimal numbers, SPC and LF re_imghdr = re.compile(br'^\d+ \d+\n$')