From df7219d3b640455faddc5699a96647c5d73ac300 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 19 Feb 2024 19:42:39 +0000 Subject: [PATCH] cropping folder icons is dumb --- copyparty/ico.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/copyparty/ico.py b/copyparty/ico.py index 28537d25..1178f4a5 100644 --- a/copyparty/ico.py +++ b/copyparty/ico.py @@ -31,10 +31,9 @@ class Ico(object): w = 100 h = 30 - if "n" in self.args.th_crop and as_thumb: + if as_thumb: sw, sh = self.args.th_size.split("x") h = int(100.0 / (float(sw) / float(sh))) - w = 100 if chrome: # cannot handle more than ~2000 unique SVGs