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')
import Image
pilimage =
import PIL.Image
pilimage =
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