I am using qrcode library to generate a QR code.
controller:
def create_qr():
import qrcode
text = "hello world test string"
img = qrcode.make(text)
return locals()
view:
<img src="{{=img}}">
using the above code, img is being returned as a PIL Image object but the
view is not displaying an image.
how can I make the view display the generated PIL Image object? do i need
to save the image somewhere first and if so, how?
thanks,
ben
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.