From 4344f77ac58a9b76c2ed27cd287e9da94afaf49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 14 Nov 2023 15:07:54 +0100 Subject: [PATCH] Do not convert width and height URL parameters of product image into boolean Since 8cba7039bc3c there are 2 new arguments w and h. Closes #12745 --- modules/product_image/product.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/product_image/product.py b/modules/product_image/product.py index b355e509bc..247d806692 100644 --- a/modules/product_image/product.py +++ b/modules/product_image/product.py @@ -48,10 +48,16 @@ class ImageURLMixin: })) if args: size = args.pop('s', None) + width = args.pop('w', None) + height = args.pop('h', None) index = args.pop('i', None) args = {k: int(bool(v)) for k, v in args.items()} if size: args['s'] = size + if width: + args['w'] = width + if height: + args['h'] = height if index is not None: args['i'] = index url += '?' + urlencode(args)