From 7dd059f134cbc11f99199abfb92cf060490af54f Mon Sep 17 00:00:00 2001 From: priddhesh <109747774+priddhesh@users.noreply.github.com> Date: Sun, 25 Sep 2022 22:05:28 +0530 Subject: [PATCH] Delete imageCompressor.py --- scripts/ImageCompressor/imageCompressor.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 scripts/ImageCompressor/imageCompressor.py diff --git a/scripts/ImageCompressor/imageCompressor.py b/scripts/ImageCompressor/imageCompressor.py deleted file mode 100644 index c8aff99..0000000 --- a/scripts/ImageCompressor/imageCompressor.py +++ /dev/null @@ -1,16 +0,0 @@ -from PIL import Image -from tkinter.filedialog import * -import argparse - -def compressImage(filename): - img = Image.open(filename) - myHeight, myWidth = img.size - img = img.resize((myHeight,myWidth), Image.ANTIALIAS) - img.save("compressed-"+filename) - -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("img",type = str) - - args = parser.parse_args() - compressImage(args.img)