mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +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…
Reference in New Issue
Block a user