{"action":"closed","issue":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/1549","labels_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1549/labels{/name}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1549/comments","events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1549/events","html_url":"https://github.com/python-pillow/Pillow/issues/1549","id":118218318,"number":1549,"title":"Crash with python3.5 and Tcl 8.6.3","user":{"login":"DoumanAsh","id":5676053,"avatar_url":"https://avatars.githubusercontent.com/u/5676053?v=3","gravatar_id":"","url":"https://api.github.com/users/DoumanAsh","html_url":"https://github.com/DoumanAsh","followers_url":"https://api.github.com/users/DoumanAsh/followers","following_url":"https://api.github.com/users/DoumanAsh/following{/other_user}","gists_url":"https://api.github.com/users/DoumanAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/DoumanAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoumanAsh/subscriptions","organizations_url":"https://api.github.com/users/DoumanAsh/orgs","repos_url":"https://api.github.com/users/DoumanAsh/repos","events_url":"https://api.github.com/users/DoumanAsh/events{/privacy}","received_events_url":"https://api.github.com/users/DoumanAsh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python-pillow/Pillow/labels/Windows","name":"Windows","color":"00bcf2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-21T20:11:30Z","updated_at":"2015-12-07T12:56:38Z","closed_at":"2015-12-07T12:56:38Z","body":"My setup: Pillow 3.0.0, Python 3.5(64bit), Tcl 8.6.3, WIn10(64bit)\r\n\r\n```\r\nPython 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import tkinter\r\n>>> tkinter.TkVersion\r\n8.6\r\n>>>\r\n````\r\n\r\nPillow is installed from ```Pillow-3.0.0-cp35-none-win_amd64.whl```\r\n\r\nCode example:\r\n```python\r\n    def load_image(self, image=None, long_edge=None):\r\n        pil_img = Image.open(image)\r\n\r\n        if long_edge > 0:\r\n            i = 0 if pil_img.size[0] > pil_img.size[1] else 1\r\n            j = abs(i - 1)\r\n\r\n            percent = (long_edge / float(pil_img.size[i]))\r\n            short_edge = int((float(pil_img.size[j]) * float(percent)))\r\n\r\n            if i:\r\n                pil_img = pil_img.resize((short_edge, long_edge), Image.ANTIALIAS)\r\n            else:\r\n                pil_img = pil_img.resize((long_edge, short_edge), Image.ANTIALIAS)\r\n\r\n        self.width_img = pil_img.size[0]\r\n        self.height_img = pil_img.size[1]\r\n        self.tk_img = ImageTk.PhotoImage(pil_img) #crashes here\r\n```\r\n\r\nCallstack if it will be useful:\r\nhttps://gist.github.com/DoumanAsh/6dba8411a109fbc68197\r\n"}}