jython:如何裁剪png图像文件

时间:2015-05-05 13:43:25

标签: png jython crop

我试过PIL(Python图像库)。不幸的是,jython不支持它。

import Image
im = Image.open("tmp.png")
box = (100,200,300,400)
region = im.crop(box)

错误信息是

  File "dota\PIL\Image.py", line 37, in __getattr__
    raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed

还有其他方法吗?

0 个答案:

没有答案