{"action":"closed","issue":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/897","labels_url":"https://api.github.com/repos/python-pillow/Pillow/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/897/comments","events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/897/events","html_url":"https://github.com/python-pillow/Pillow/issues/897","id":42644831,"number":897,"title":"Add functions to Image: static fromqimage and fromqpixmap; methods toqimage and toqpixmap","user":{"login":"rominf","id":3449635,"avatar_url":"https://avatars.githubusercontent.com/u/3449635?v=3","gravatar_id":"","url":"https://api.github.com/users/rominf","html_url":"https://github.com/rominf","followers_url":"https://api.github.com/users/rominf/followers","following_url":"https://api.github.com/users/rominf/following{/other_user}","gists_url":"https://api.github.com/users/rominf/gists{/gist_id}","starred_url":"https://api.github.com/users/rominf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rominf/subscriptions","organizations_url":"https://api.github.com/users/rominf/orgs","repos_url":"https://api.github.com/users/rominf/repos","events_url":"https://api.github.com/users/rominf/events{/privacy}","received_events_url":"https://api.github.com/users/rominf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-12T16:10:21Z","updated_at":"2015-03-26T10:36:02Z","closed_at":"2015-03-26T10:36:02Z","body":"I'm writing Qt application that needs diff feature of Pillow `Image`. So, I need to convert `QPixmap` to `Image` and and vice versa.\r\n\r\nI've found existing class `ImageQt`. But I don't like it. It contains just one `__init__` function. In this case using class is not required. I would say it's misleading.\r\n\r\nI'm gonna prepare functions for Image class: static `fromqimage` and `fromqpixmap`; methods `toqimage` and `toqpixmap`.\r\n\r\nThose functions would be defined only if PyQt is installed.\r\n\r\nWhat do you think?\r\n\r\nPS: I would like to change `from*` functions to `from_*` due readability. But I want to be consistent. If you like `from*` more, I would write `fromqpixmap`, etc."}}