From b652b9f6024e82c89468d5f35ffc86a3c36dbdc6 Mon Sep 17 00:00:00 2001 From: Niranjan B Date: Fri, 29 Sep 2023 15:45:10 +0530 Subject: [PATCH] fix : #259 ANTIALIAS changed to LANCZOS --- Image_Compressor/Image_Compressor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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