From dcc9461d2439903eac36f82d73d136057b8cf797 Mon Sep 17 00:00:00 2001 From: priddhesh <109747774+priddhesh@users.noreply.github.com> Date: Sun, 25 Sep 2022 22:10:44 +0530 Subject: [PATCH] Update imageCompressor.py --- scripts/ImageCompressor/imageCompressor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ImageCompressor/imageCompressor.py b/scripts/ImageCompressor/imageCompressor.py index c8aff99..759f63d 100644 --- a/scripts/ImageCompressor/imageCompressor.py +++ b/scripts/ImageCompressor/imageCompressor.py @@ -4,8 +4,8 @@ import argparse def compressImage(filename): img = Image.open(filename) - myHeight, myWidth = img.size - img = img.resize((myHeight,myWidth), Image.ANTIALIAS) + Height, Width = img.size + img = img.resize((Height,Width), Image.ANTIALIAS) img.save("compressed-"+filename) if __name__ == "__main__":