save() 函式中加入 quality=80 , subsampling=0 這兩個參數即可壓縮檔案,通常quality 會設定80或90。 from PIL import Image img = Image.open("test.jpg") img.save(" ...
確定! 回上一頁