{"action":"created","comment":{"url":"https://api.github.com/repos/lovell/sharp/pulls/comments/45060173","id":45060173,"diff_hunk":"@@ -0,0 +1,12 @@\n+# http://editorconfig.org\n+root = true\n+\n+[*]\n+indent_style = space\n+indent_size = 2\n+charset = utf-8\n+trim_trailing_whitespace = true\n+insert_final_newline = true\n+\n+[*.md]\n+trim_trailing_whitespace = false","path":".editorconfig","position":12,"original_position":12,"commit_id":"5f51a60ae59f18f3981687908bceeffa02ddf065","original_commit_id":"5f51a60ae59f18f3981687908bceeffa02ddf065","user":{"login":"dacarley","id":963715,"avatar_url":"https://avatars.githubusercontent.com/u/963715?v=3","gravatar_id":"","url":"https://api.github.com/users/dacarley","html_url":"https://github.com/dacarley","followers_url":"https://api.github.com/users/dacarley/followers","following_url":"https://api.github.com/users/dacarley/following{/other_user}","gists_url":"https://api.github.com/users/dacarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dacarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dacarley/subscriptions","organizations_url":"https://api.github.com/users/dacarley/orgs","repos_url":"https://api.github.com/users/dacarley/repos","events_url":"https://api.github.com/users/dacarley/events{/privacy}","received_events_url":"https://api.github.com/users/dacarley/received_events","type":"User","site_admin":false},"body":"I'm not aware of any, but trailing whitespace can be significant in Markdown.\r\n\r\n(Honestly, I copied the file from another of my own projects, and tweaked the indent settings to match your style)","created_at":"2015-11-17T13:41:39Z","updated_at":"2015-11-17T13:41:39Z","html_url":"https://github.com/lovell/sharp/pull/303#discussion_r45060173","pull_request_url":"https://api.github.com/repos/lovell/sharp/pulls/303","_links":{"self":{"href":"https://api.github.com/repos/lovell/sharp/pulls/comments/45060173"},"html":{"href":"https://github.com/lovell/sharp/pull/303#discussion_r45060173"},"pull_request":{"href":"https://api.github.com/repos/lovell/sharp/pulls/303"}}},"pull_request":{"url":"https://api.github.com/repos/lovell/sharp/pulls/303","id":50914018,"html_url":"https://github.com/lovell/sharp/pull/303","diff_url":"https://github.com/lovell/sharp/pull/303.diff","patch_url":"https://github.com/lovell/sharp/pull/303.patch","issue_url":"https://api.github.com/repos/lovell/sharp/issues/303","number":303,"state":"open","locked":false,"title":"Implemented greyscale thresholding","user":{"login":"dacarley","id":963715,"avatar_url":"https://avatars.githubusercontent.com/u/963715?v=3","gravatar_id":"","url":"https://api.github.com/users/dacarley","html_url":"https://github.com/dacarley","followers_url":"https://api.github.com/users/dacarley/followers","following_url":"https://api.github.com/users/dacarley/following{/other_user}","gists_url":"https://api.github.com/users/dacarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dacarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dacarley/subscriptions","organizations_url":"https://api.github.com/users/dacarley/orgs","repos_url":"https://api.github.com/users/dacarley/repos","events_url":"https://api.github.com/users/dacarley/events{/privacy}","received_events_url":"https://api.github.com/users/dacarley/received_events","type":"User","site_admin":false},"body":"This PR implements greyscale thresholding -- convert all pixels in an image to either white, or black, depending on whether they are above or below a given threshold.\r\n\r\nThis operation is useful in a number of image-processing scenarios. In my case, I'll be utilizing it as part of a handwriting recognition system, which requires that the images are normalized in this sort of way.\r\n\r\n","created_at":"2015-11-17T07:47:20Z","updated_at":"2015-11-17T13:41:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa66950d988b70ebcccdf32f1ab74901db5a2c65","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lovell/sharp/pulls/303/commits","review_comments_url":"https://api.github.com/repos/lovell/sharp/pulls/303/comments","review_comment_url":"https://api.github.com/repos/lovell/sharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/303/comments","statuses_url":"https://api.github.com/repos/lovell/sharp/statuses/5f51a60ae59f18f3981687908bceeffa02ddf065","head":{"label":"dacarley:threshold","ref":"threshold","sha":"5f51a60ae59f18f3981687908bceeffa02ddf065","user":{"login":"dacarley","id":963715,"avatar_url":"https://avatars.githubusercontent.com/u/963715?v=3","gravatar_id":"","url":"https://api.github.com/users/dacarley","html_url":"https://github.com/dacarley","followers_url":"https://api.github.com/users/dacarley/followers","following_url":"https://api.github.com/users/dacarley/following{/other_user}","gists_url":"https://api.github.com/users/dacarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dacarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dacarley/subscriptions","organizations_url":"https://api.github.com/users/dacarley/orgs","repos_url":"https://api.github.com/users/dacarley/repos","events_url":"https://api.github.com/users/dacarley/events{/privacy}","received_events_url":"https://api.github.com/users/dacarley/received_events","type":"User","site_admin":false},"repo":{"id":46324418,"name":"sharp","full_name":"dacarley/sharp","owner":{"login":"dacarley","id":963715,"avatar_url":"https://avatars.githubusercontent.com/u/963715?v=3","gravatar_id":"","url":"https://api.github.com/users/dacarley","html_url":"https://github.com/dacarley","followers_url":"https://api.github.com/users/dacarley/followers","following_url":"https://api.github.com/users/dacarley/following{/other_user}","gists_url":"https://api.github.com/users/dacarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dacarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dacarley/subscriptions","organizations_url":"https://api.github.com/users/dacarley/orgs","repos_url":"https://api.github.com/users/dacarley/repos","events_url":"https://api.github.com/users/dacarley/events{/privacy}","received_events_url":"https://api.github.com/users/dacarley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dacarley/sharp","description":"The fastest Node.js module for resizing JPEG, PNG, WebP and TIFF images. Uses the libvips library.","fork":true,"url":"https://api.github.com/repos/dacarley/sharp","forks_url":"https://api.github.com/repos/dacarley/sharp/forks","keys_url":"https://api.github.com/repos/dacarley/sharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dacarley/sharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dacarley/sharp/teams","hooks_url":"https://api.github.com/repos/dacarley/sharp/hooks","issue_events_url":"https://api.github.com/repos/dacarley/sharp/issues/events{/number}","events_url":"https://api.github.com/repos/dacarley/sharp/events","assignees_url":"https://api.github.com/repos/dacarley/sharp/assignees{/user}","branches_url":"https://api.github.com/repos/dacarley/sharp/branches{/branch}","tags_url":"https://api.github.com/repos/dacarley/sharp/tags","blobs_url":"https://api.github.com/repos/dacarley/sharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dacarley/sharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dacarley/sharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/dacarley/sharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dacarley/sharp/statuses/{sha}","languages_url":"https://api.github.com/repos/dacarley/sharp/languages","stargazers_url":"https://api.github.com/repos/dacarley/sharp/stargazers","contributors_url":"https://api.github.com/repos/dacarley/sharp/contributors","subscribers_url":"https://api.github.com/repos/dacarley/sharp/subscribers","subscription_url":"https://api.github.com/repos/dacarley/sharp/subscription","commits_url":"https://api.github.com/repos/dacarley/sharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/dacarley/sharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/dacarley/sharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/dacarley/sharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/dacarley/sharp/contents/{+path}","compare_url":"https://api.github.com/repos/dacarley/sharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dacarley/sharp/merges","archive_url":"https://api.github.com/repos/dacarley/sharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dacarley/sharp/downloads","issues_url":"https://api.github.com/repos/dacarley/sharp/issues{/number}","pulls_url":"https://api.github.com/repos/dacarley/sharp/pulls{/number}","milestones_url":"https://api.github.com/repos/dacarley/sharp/milestones{/number}","notifications_url":"https://api.github.com/repos/dacarley/sharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dacarley/sharp/labels{/name}","releases_url":"https://api.github.com/repos/dacarley/sharp/releases{/id}","created_at":"2015-11-17T05:01:54Z","updated_at":"2015-11-17T05:01:56Z","pushed_at":"2015-11-17T07:46:29Z","git_url":"git://github.com/dacarley/sharp.git","ssh_url":"git@github.com:dacarley/sharp.git","clone_url":"https://github.com/dacarley/sharp.git","svn_url":"https://github.com/dacarley/sharp","homepage":"http://sharp.dimens.io/","size":17620,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lovell:look","ref":"look","sha":"5dfeaa9fd15c3588210bea4f62f9a707ea322f04","user":{"login":"lovell","id":210965,"avatar_url":"https://avatars.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"repo":{"id":12226786,"name":"sharp","full_name":"lovell/sharp","owner":{"login":"lovell","id":210965,"avatar_url":"https://avatars.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lovell/sharp","description":"The fastest Node.js module for resizing JPEG, PNG, WebP and TIFF images. Uses the libvips library.","fork":false,"url":"https://api.github.com/repos/lovell/sharp","forks_url":"https://api.github.com/repos/lovell/sharp/forks","keys_url":"https://api.github.com/repos/lovell/sharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lovell/sharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lovell/sharp/teams","hooks_url":"https://api.github.com/repos/lovell/sharp/hooks","issue_events_url":"https://api.github.com/repos/lovell/sharp/issues/events{/number}","events_url":"https://api.github.com/repos/lovell/sharp/events","assignees_url":"https://api.github.com/repos/lovell/sharp/assignees{/user}","branches_url":"https://api.github.com/repos/lovell/sharp/branches{/branch}","tags_url":"https://api.github.com/repos/lovell/sharp/tags","blobs_url":"https://api.github.com/repos/lovell/sharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lovell/sharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lovell/sharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/lovell/sharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lovell/sharp/statuses/{sha}","languages_url":"https://api.github.com/repos/lovell/sharp/languages","stargazers_url":"https://api.github.com/repos/lovell/sharp/stargazers","contributors_url":"https://api.github.com/repos/lovell/sharp/contributors","subscribers_url":"https://api.github.com/repos/lovell/sharp/subscribers","subscription_url":"https://api.github.com/repos/lovell/sharp/subscription","commits_url":"https://api.github.com/repos/lovell/sharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/lovell/sharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/lovell/sharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/lovell/sharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/lovell/sharp/contents/{+path}","compare_url":"https://api.github.com/repos/lovell/sharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lovell/sharp/merges","archive_url":"https://api.github.com/repos/lovell/sharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lovell/sharp/downloads","issues_url":"https://api.github.com/repos/lovell/sharp/issues{/number}","pulls_url":"https://api.github.com/repos/lovell/sharp/pulls{/number}","milestones_url":"https://api.github.com/repos/lovell/sharp/milestones{/number}","notifications_url":"https://api.github.com/repos/lovell/sharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lovell/sharp/labels{/name}","releases_url":"https://api.github.com/repos/lovell/sharp/releases{/id}","created_at":"2013-08-19T20:24:24Z","updated_at":"2015-11-17T08:11:52Z","pushed_at":"2015-11-17T07:47:20Z","git_url":"git://github.com/lovell/sharp.git","ssh_url":"git@github.com:lovell/sharp.git","clone_url":"https://github.com/lovell/sharp.git","svn_url":"https://github.com/lovell/sharp","homepage":"http://sharp.dimens.io/","size":22150,"stargazers_count":2726,"watchers_count":2726,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":140,"mirror_url":null,"open_issues_count":40,"forks":140,"open_issues":40,"watchers":2726,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lovell/sharp/pulls/303"},"html":{"href":"https://github.com/lovell/sharp/pull/303"},"issue":{"href":"https://api.github.com/repos/lovell/sharp/issues/303"},"comments":{"href":"https://api.github.com/repos/lovell/sharp/issues/303/comments"},"review_comments":{"href":"https://api.github.com/repos/lovell/sharp/pulls/303/comments"},"review_comment":{"href":"https://api.github.com/repos/lovell/sharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lovell/sharp/pulls/303/commits"},"statuses":{"href":"https://api.github.com/repos/lovell/sharp/statuses/5f51a60ae59f18f3981687908bceeffa02ddf065"}}}}