diff --git a/Image_Compressor/Image_Compressor.py b/Image_Compressor/Image_Compressor.py index b838e22..cb7082d 100644 --- a/Image_Compressor/Image_Compressor.py +++ b/Image_Compressor/Image_Compressor.py @@ -6,7 +6,7 @@ file_path=askopenfilenames() img = PIL.Image.open(file_path) myHeight,myWidth = img.size -img=img.resize((myHeight,myWidth),PIL.Image.ANTILIAS) +img=img.resize((myHeight,myWidth),Image.Resampling.LANCZOS) save_path=asksaveasfile() img.save(save_path+"_compressed.JPG") \ No newline at end of file