mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2025-03-20 04:29:48 +00:00
fix : #259 ANTIALIAS changed to LANCZOS
This commit is contained in:
parent
dbe5f66e13
commit
b652b9f602
@ -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")
|
Loading…
x
Reference in New Issue
Block a user