python - PIL Image.resize() 不调整图片大小 ... from PIL import Image img = Image.open('foo.jpg') width, height = img.size ratio = floor(height / width) ...
確定! 回上一頁