{"action":"created","issue":{"url":"https://api.github.com/repos/xhtml2pdf/xhtml2pdf/issues/271","labels_url":"https://api.github.com/repos/xhtml2pdf/xhtml2pdf/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/xhtml2pdf/xhtml2pdf/issues/271/comments","events_url":"https://api.github.com/repos/xhtml2pdf/xhtml2pdf/issues/271/events","html_url":"https://github.com/xhtml2pdf/xhtml2pdf/issues/271","id":127757740,"number":271,"title":"images not working in App Engine ?","user":{"login":"PatriceBertrand","id":8993522,"avatar_url":"https://avatars.githubusercontent.com/u/8993522?v=3","gravatar_id":"","url":"https://api.github.com/users/PatriceBertrand","html_url":"https://github.com/PatriceBertrand","followers_url":"https://api.github.com/users/PatriceBertrand/followers","following_url":"https://api.github.com/users/PatriceBertrand/following{/other_user}","gists_url":"https://api.github.com/users/PatriceBertrand/gists{/gist_id}","starred_url":"https://api.github.com/users/PatriceBertrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatriceBertrand/subscriptions","organizations_url":"https://api.github.com/users/PatriceBertrand/orgs","repos_url":"https://api.github.com/users/PatriceBertrand/repos","events_url":"https://api.github.com/users/PatriceBertrand/events{/privacy}","received_events_url":"https://api.github.com/users/PatriceBertrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T18:52:41Z","updated_at":"2016-01-20T19:40:15Z","closed_at":null,"body":"Templates that include img tags fail on Google App Engine.  \r\nEnd of stack trace is: \r\n\r\n      File \"/base/data/home/apps/s~total-ensign-697/alpha-039.390121020449767685/lib/site-packages/reportlab/pdfgen/canvas.py\", line 925, in drawImage\r\n        imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)\r\n      File \"/base/data/home/apps/s~total-ensign-697/alpha-039.390121020449767685/lib/site-packages/reportlab/pdfbase/pdfdoc.py\", line 2095, in __init__\r\n        self.loadImageFromSRC(source)   #it is already a PIL Image\r\n      File \"/base/data/home/apps/s~total-ensign-697/alpha-039.390121020449767685/lib/site-packages/reportlab/pdfbase/pdfdoc.py\", line 2186, in loadImageFromSRC\r\n        raw = im.getRGBData()\r\n      File \"/base/data/home/apps/s~total-ensign-697/alpha-039.390121020449767685/lib/site-packages/xhtml2pdf/xhtml2pdf_reportlab.py\", line 425, in getRGBData\r\n        self._data = im.tobytes()\r\n      File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/PIL-1.1.7/PIL/Image.py\", line 512, in __getattr__\r\n        raise AttributeError(name)\r\n    AttributeError: tobytes\r\n\r\nMaybe because Google has it's own PIL library ? \r\n\r\nIs this a known issue ?"},"comment":{"url":"https://api.github.com/repos/xhtml2pdf/xhtml2pdf/issues/comments/173336296","html_url":"https://github.com/xhtml2pdf/xhtml2pdf/issues/271#issuecomment-173336296","issue_url":"https://api.github.com/repos/xhtml2pdf/xhtml2pdf/issues/271","id":173336296,"user":{"login":"benjaoming","id":374612,"avatar_url":"https://avatars.githubusercontent.com/u/374612?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaoming","html_url":"https://github.com/benjaoming","followers_url":"https://api.github.com/users/benjaoming/followers","following_url":"https://api.github.com/users/benjaoming/following{/other_user}","gists_url":"https://api.github.com/users/benjaoming/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaoming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaoming/subscriptions","organizations_url":"https://api.github.com/users/benjaoming/orgs","repos_url":"https://api.github.com/users/benjaoming/repos","events_url":"https://api.github.com/users/benjaoming/events{/privacy}","received_events_url":"https://api.github.com/users/benjaoming/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T19:40:15Z","updated_at":"2016-01-20T19:40:15Z","body":"Is this 0.0.6 or 0.1b (develop branch) ?"}}