This commit is contained in:
Kovid Goyal 2012-11-12 18:45:57 +05:30
parent f4f58175f8
commit 2238adce24
2 changed files with 3 additions and 2 deletions

View File

@ -365,7 +365,7 @@ Install as normal using installer at http://www.lfd.uci.edu/~gohlke/pythonlibs/
Test it on the target system with
calibre-debug -c "import _imaging, _imagingmath, _imagingft, _imagingcms"
calibre-debug -c "from PIL import _imaging, _imagingmath, _imagingft, _imagingcms"
kdewin32-msvc

View File

@ -74,7 +74,8 @@ def test_imaging():
print ('ImageMagick OK!')
else:
raise RuntimeError('ImageMagick choked!')
from PIL import Image
from PIL import Image, _imaging, _imagingmath, _imagingft, _imagingcms
_imaging, _imagingmath, _imagingft, _imagingcms
i = Image.open(cStringIO.StringIO(data))
if i.size < (20, 20):
raise RuntimeError('PIL choked!')