Commit 2c33fcdb authored by hydrargyrum's avatar hydrargyrum

qr-shot: import PIL correctly

parent 44d9033b
......@@ -38,8 +38,8 @@ def decodeImage(qpix):
temp = tempfile.NamedTemporaryFile(suffix='.png')
qpix.save(temp.name)
import Image
pilimage = Image.open(temp.name)
import PIL.Image
pilimage = PIL.Image.open(temp.name)
pilimage = pilimage.convert('L')
rawbytes = ''.join(map(chr, pilimage.getdata()))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment