mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2025-04-16 01:07:35 +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)
|
img = PIL.Image.open(file_path)
|
||||||
myHeight,myWidth = img.size
|
myHeight,myWidth = img.size
|
||||||
|
|
||||||
img=img.resize((myHeight,myWidth),PIL.Image.ANTILIAS)
|
img=img.resize((myHeight,myWidth),Image.Resampling.LANCZOS)
|
||||||
save_path=asksaveasfile()
|
save_path=asksaveasfile()
|
||||||
|
|
||||||
img.save(save_path+"_compressed.JPG")
|
img.save(save_path+"_compressed.JPG")
|
Loading…
x
Reference in New Issue
Block a user