瀏覽代碼

wxGUI core/utils.py: fix PIL call

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57932 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 年之前
父節點
當前提交
81e44f8791
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/core/utils.py

+ 1 - 1
gui/wxpython/core/utils.py

@@ -1100,7 +1100,7 @@ def autoCropImageFromFile(filename):
     @param filename path to file
     @return wx.Image instance
     """
-    import Image
+    from PIL import Image
     pilImage = Image.open(filename)
     imageBox = pilImage.getbbox()
     cropped = pilImage.crop(imageBox)