from PIL import Image im = Image.open('whatever.png') width, height = im.size
在上面的代码中,宽度和高度的尺寸是多少?我的意思是它们的单位是毫米、英寸还是其他?
如果我通过坐标 (x,y) 引用像素,那么该像素与 0,0 或左上角的距离(以毫米、英寸等任何物理单位表示)是多少?
python dimension python-imaging-library
dimension ×1
python ×1
python-imaging-library ×1