This commit is contained in:
2026-09-06 01:06:15 +02:00
parent 04ee194227
commit 3afa31e90f
8 changed files with 107 additions and 119 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
from PIL import Image
def fix_image_resolution(image_path, size=(0,0)):
if image_path == None or size == (0,0):
def resize_image_to_resolution(image_path, size=(0, 0)):
if image_path is None or size == (0, 0):
return None
with Image.open(image_path) as image: