{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/27","id":83801272,"html_url":"https://github.com/hyperoslo/Imaginary/pull/27","diff_url":"https://github.com/hyperoslo/Imaginary/pull/27.diff","patch_url":"https://github.com/hyperoslo/Imaginary/pull/27.patch","issue_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues/27","number":27,"state":"open","locked":false,"title":"Feature: image preprocessing","user":{"login":"vadymmarkov","id":10529867,"avatar_url":"https://avatars.githubusercontent.com/u/10529867?v=3","gravatar_id":"","url":"https://api.github.com/users/vadymmarkov","html_url":"https://github.com/vadymmarkov","followers_url":"https://api.github.com/users/vadymmarkov/followers","following_url":"https://api.github.com/users/vadymmarkov/following{/other_user}","gists_url":"https://api.github.com/users/vadymmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/vadymmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadymmarkov/subscriptions","organizations_url":"https://api.github.com/users/vadymmarkov/orgs","repos_url":"https://api.github.com/users/vadymmarkov/repos","events_url":"https://api.github.com/users/vadymmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/vadymmarkov/received_events","type":"User","site_admin":false},"body":"Now you can pass a list of \"drawers\" to modify an image before it will be saved in cache and displayed on the screen:\r\n\r\n```swift\r\nsetImage(imageURL, preprocess: { image in\r\n  let effect = TintDrawer(tintColor: color)\r\n  return image.modify(with: effect) ?? image\r\n})\r\n```\r\n\r\n`TintDrawer` is an implementation of color blend effect. It might be nice feature if we have more \"preprocessors\" like that in the library.","created_at":"2016-09-02T13:26:55Z","updated_at":"2016-09-02T13:26:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0044d0550f034311479f7c1f5c6c771dbee307d0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/27/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/27/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues/27/comments","statuses_url":"https://api.github.com/repos/hyperoslo/Imaginary/statuses/92852c90bc22c4d1484ef09e6f37c9ad945ad6f3","head":{"label":"hyperoslo:feature/image-preprocessing","ref":"feature/image-preprocessing","sha":"92852c90bc22c4d1484ef09e6f37c9ad945ad6f3","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":46869276,"name":"Imaginary","full_name":"hyperoslo/Imaginary","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/Imaginary","description":":dizzy:","fork":false,"url":"https://api.github.com/repos/hyperoslo/Imaginary","forks_url":"https://api.github.com/repos/hyperoslo/Imaginary/forks","keys_url":"https://api.github.com/repos/hyperoslo/Imaginary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/Imaginary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/Imaginary/teams","hooks_url":"https://api.github.com/repos/hyperoslo/Imaginary/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/Imaginary/events","assignees_url":"https://api.github.com/repos/hyperoslo/Imaginary/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/Imaginary/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/Imaginary/tags","blobs_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/Imaginary/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/Imaginary/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/Imaginary/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/Imaginary/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/Imaginary/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/Imaginary/subscription","commits_url":"https://api.github.com/repos/hyperoslo/Imaginary/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/Imaginary/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/Imaginary/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/Imaginary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/Imaginary/merges","archive_url":"https://api.github.com/repos/hyperoslo/Imaginary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/Imaginary/downloads","issues_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/Imaginary/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/Imaginary/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/Imaginary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/Imaginary/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/Imaginary/releases{/id}","deployments_url":"https://api.github.com/repos/hyperoslo/Imaginary/deployments","created_at":"2015-11-25T15:14:54Z","updated_at":"2016-07-07T12:26:36Z","pushed_at":"2016-09-02T13:26:55Z","git_url":"git://github.com/hyperoslo/Imaginary.git","ssh_url":"git@github.com:hyperoslo/Imaginary.git","clone_url":"https://github.com/hyperoslo/Imaginary.git","svn_url":"https://github.com/hyperoslo/Imaginary","homepage":"","size":1153,"stargazers_count":12,"watchers_count":12,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":12,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"4ab2007614aa2397a9ce82c69771f21df3d37cdc","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":46869276,"name":"Imaginary","full_name":"hyperoslo/Imaginary","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/Imaginary","description":":dizzy:","fork":false,"url":"https://api.github.com/repos/hyperoslo/Imaginary","forks_url":"https://api.github.com/repos/hyperoslo/Imaginary/forks","keys_url":"https://api.github.com/repos/hyperoslo/Imaginary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/Imaginary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/Imaginary/teams","hooks_url":"https://api.github.com/repos/hyperoslo/Imaginary/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/Imaginary/events","assignees_url":"https://api.github.com/repos/hyperoslo/Imaginary/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/Imaginary/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/Imaginary/tags","blobs_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/Imaginary/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/Imaginary/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/Imaginary/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/Imaginary/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/Imaginary/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/Imaginary/subscription","commits_url":"https://api.github.com/repos/hyperoslo/Imaginary/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/Imaginary/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/Imaginary/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/Imaginary/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/Imaginary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/Imaginary/merges","archive_url":"https://api.github.com/repos/hyperoslo/Imaginary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/Imaginary/downloads","issues_url":"https://api.github.com/repos/hyperoslo/Imaginary/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/Imaginary/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/Imaginary/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/Imaginary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/Imaginary/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/Imaginary/releases{/id}","deployments_url":"https://api.github.com/repos/hyperoslo/Imaginary/deployments","created_at":"2015-11-25T15:14:54Z","updated_at":"2016-07-07T12:26:36Z","pushed_at":"2016-09-02T13:26:55Z","git_url":"git://github.com/hyperoslo/Imaginary.git","ssh_url":"git@github.com:hyperoslo/Imaginary.git","clone_url":"https://github.com/hyperoslo/Imaginary.git","svn_url":"https://github.com/hyperoslo/Imaginary","homepage":"","size":1153,"stargazers_count":12,"watchers_count":12,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/27"},"html":{"href":"https://github.com/hyperoslo/Imaginary/pull/27"},"issue":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/issues/27"},"comments":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/Imaginary/statuses/92852c90bc22c4d1484ef09e6f37c9ad945ad6f3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":101,"deletions":9,"changed_files":9}}
{"actor":{"display_login":"vadymmarkov"}}