{"action":"closed","issue":{"url":"https://api.github.com/repos/jarrekk/imgkit/issues/3","repository_url":"https://api.github.com/repos/jarrekk/imgkit","labels_url":"https://api.github.com/repos/jarrekk/imgkit/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jarrekk/imgkit/issues/3/comments","events_url":"https://api.github.com/repos/jarrekk/imgkit/issues/3/events","html_url":"https://github.com/jarrekk/imgkit/issues/3","id":215984036,"number":3,"title":"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte","user":{"login":"stscript","id":3971885,"avatar_url":"https://avatars2.githubusercontent.com/u/3971885?v=3","gravatar_id":"","url":"https://api.github.com/users/stscript","html_url":"https://github.com/stscript","followers_url":"https://api.github.com/users/stscript/followers","following_url":"https://api.github.com/users/stscript/following{/other_user}","gists_url":"https://api.github.com/users/stscript/gists{/gist_id}","starred_url":"https://api.github.com/users/stscript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stscript/subscriptions","organizations_url":"https://api.github.com/users/stscript/orgs","repos_url":"https://api.github.com/users/stscript/repos","events_url":"https://api.github.com/users/stscript/events{/privacy}","received_events_url":"https://api.github.com/users/stscript/received_events","type":"User","site_admin":false},"labels":[{"id":528368952,"url":"https://api.github.com/repos/jarrekk/imgkit/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"jarrekk","id":10969478,"avatar_url":"https://avatars1.githubusercontent.com/u/10969478?v=3","gravatar_id":"","url":"https://api.github.com/users/jarrekk","html_url":"https://github.com/jarrekk","followers_url":"https://api.github.com/users/jarrekk/followers","following_url":"https://api.github.com/users/jarrekk/following{/other_user}","gists_url":"https://api.github.com/users/jarrekk/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrekk/subscriptions","organizations_url":"https://api.github.com/users/jarrekk/orgs","repos_url":"https://api.github.com/users/jarrekk/repos","events_url":"https://api.github.com/users/jarrekk/events{/privacy}","received_events_url":"https://api.github.com/users/jarrekk/received_events","type":"User","site_admin":false},"assignees":[{"login":"jarrekk","id":10969478,"avatar_url":"https://avatars1.githubusercontent.com/u/10969478?v=3","gravatar_id":"","url":"https://api.github.com/users/jarrekk","html_url":"https://github.com/jarrekk","followers_url":"https://api.github.com/users/jarrekk/followers","following_url":"https://api.github.com/users/jarrekk/following{/other_user}","gists_url":"https://api.github.com/users/jarrekk/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrekk/subscriptions","organizations_url":"https://api.github.com/users/jarrekk/orgs","repos_url":"https://api.github.com/users/jarrekk/repos","events_url":"https://api.github.com/users/jarrekk/events{/privacy}","received_events_url":"https://api.github.com/users/jarrekk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-03-22T08:14:54Z","updated_at":"2017-04-08T04:03:02Z","closed_at":"2017-04-08T04:03:02Z","body":"When I start the code:\r\n`imgkit.from_string('hello', 'output.jpg')`\r\nit raise the error\r\n<ipython-input-7-a45e19e245eb>** in <module>()\r\n----> 1 imgkit.from_string(r'hello', 'out.jpg')\r\n\r\n/opt/anaconda3/lib/python3.6/site-packages/imgkit/api.py in from_string(string, output_path, options, toc, cover, css, config, cover_first)\r\n     55     rtn = IMGKit(string, 'string', options=options, toc=toc, cover=cover, css=css,\r\n     56                  config=config, cover_first=cover_first)\r\n---> 57     return rtn.to_img(output_path)\r\n     58 \r\n     59 \r\n\r\n/opt/anaconda3/lib/python3.6/site-packages/imgkit/imgkit.py in to_img(self, path)\r\n    240             try:\r\n    241                 with codecs.open(path) as f:\r\n--> 242                     text = f.read(4)\r\n    243                     if text == '':\r\n    244                         raise IOError('Command failed: %s\\n'\r\n\r\n/opt/anaconda3/lib/python3.6/codecs.py in decode(self, input, final)\r\n    319         # decode input (taking the buffer into account)\r\n    320         data = self.buffer + input\r\n--> 321         (result, consumed) = self._buffer_decode(data, self.errors, final)\r\n    322         # keep undecoded input until the next call\r\n    323         self.buffer = data[consumed:]\r\n\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte \r\n"}}
{"actor":{"display_login":"jarrekk"}}