From f95f6e82f23d696424e3a7945dd3641dad1f2a2c Mon Sep 17 00:00:00 2001 From: Saltyy Date: Mon, 12 May 2025 18:49:45 +0200 Subject: [PATCH] update - correct double-dot extension issue in imwrite_unicode function --- modules/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/__init__.py b/modules/__init__.py index f6e8d86..906e27c 100644 --- a/modules/__init__.py +++ b/modules/__init__.py @@ -11,7 +11,7 @@ def imwrite_unicode(path, img, params=None): root, ext = os.path.splitext(path) if not ext: ext = ".png" - result, encoded_img = cv2.imencode(f".{ext}", img, params if params is not None else []) + result, encoded_img = cv2.imencode(ext, img, params if params is not None else []) if result: encoded_img.tofile(path) return True