{"action":"opened","issue":{"url":"https://api.github.com/repos/thumbor/thumbor/issues/612","labels_url":"https://api.github.com/repos/thumbor/thumbor/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/thumbor/thumbor/issues/612/comments","events_url":"https://api.github.com/repos/thumbor/thumbor/issues/612/events","html_url":"https://github.com/thumbor/thumbor/issues/612","id":117812122,"number":612,"title":"\"Get meta > With metadata\" test fails","user":{"login":"gi11es","id":487183,"avatar_url":"https://avatars.githubusercontent.com/u/487183?v=3","gravatar_id":"","url":"https://api.github.com/users/gi11es","html_url":"https://github.com/gi11es","followers_url":"https://api.github.com/users/gi11es/followers","following_url":"https://api.github.com/users/gi11es/following{/other_user}","gists_url":"https://api.github.com/users/gi11es/gists{/gist_id}","starred_url":"https://api.github.com/users/gi11es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gi11es/subscriptions","organizations_url":"https://api.github.com/users/gi11es/orgs","repos_url":"https://api.github.com/users/gi11es/repos","events_url":"https://api.github.com/users/gi11es/events{/privacy}","received_events_url":"https://api.github.com/users/gi11es/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T13:19:14Z","updated_at":"2015-11-19T13:19:14Z","closed_at":null,"body":"Running \"make test\" on a fresh checkout on OS X I get this error:\r\n\r\n```\r\nERROR:tornado.application:Future exception was never retrieved: Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/tornado/gen.py\", line 1017, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py\", line 82, in execute_image_operations\r\n    self.context.request.engine.load(buffer, EXTENSION.get(mime, '.jpg'))\r\n  File \"/usr/local/lib/python2.7/site-packages/thumbor/engines/__init__.py\", line 98, in load\r\n    image_or_frames = self.create_image(buffer)\r\n  File \"/usr/local/lib/python2.7/site-packages/thumbor/engines/pil.py\", line 63, in create_image\r\n    img = Image.open(BytesIO(buffer))\r\n  File \"/usr/local/lib/python2.7/site-packages/PIL/Image.py\", line 2330, in open\r\n    % (filename if filename else fp))\r\nIOError: cannot identify image file <_io.BytesIO object at 0x10c47cd70>\r\n```\r\n\r\nWhen I look at what the buffer passed to PIL contains, it's this:\r\n\r\n```\r\n{\"thumbor\": {\"operations\": [{\"top\": 125, \"right\": 300, \"type\": \"crop\", \"bottom\": 275, \"left\": 0}, {\"width\": 800.0, \"type\": \"resize\", \"height\": 400.0}], \"source\": {\"url\": \"image.jpg\", \"width\": 300, \"frameCount\": 1, \"height\": 400}, \"focal_points\": [{\"origin\": \"alignment\", \"height\": 1, \"width\": 1, \"y\": 200.0, \"x\": 150.0, \"z\": 1.0}], \"target\": {\"width\": 800.0, \"height\": 400.0}}}\r\n```\r\nSurely PIL can't treat this as an image to be read. It looks like the wrong thing ends up being stored in that buffer parameter."}}