{"action":"created","comment":{"url":"https://api.github.com/repos/inventid/live-image-resize/pulls/comments/40061265","id":40061265,"diff_hunk":"@@ -103,7 +103,15 @@ function splitUrl(url) {\n   return url.match(/^\\/(.*)_(\\d+)_(\\d+)(_(\\d+)x)?\\.(.*)/);\n }\n \n-function getImageParams(url) {\n+function getImageParams(req) {\n+  var url = req.url;\n+  var queryParams = null;\n+  var split = url.indexOf('?');","path":"resize.js","position":28,"original_position":28,"commit_id":"2bc6c530ab6f597ef0091d7ebb5c86128cb00557","original_commit_id":"2bc6c530ab6f597ef0091d7ebb5c86128cb00557","user":{"login":"TiddoLangerak","id":1759192,"avatar_url":"https://avatars.githubusercontent.com/u/1759192?v=3","gravatar_id":"","url":"https://api.github.com/users/TiddoLangerak","html_url":"https://github.com/TiddoLangerak","followers_url":"https://api.github.com/users/TiddoLangerak/followers","following_url":"https://api.github.com/users/TiddoLangerak/following{/other_user}","gists_url":"https://api.github.com/users/TiddoLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/TiddoLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiddoLangerak/subscriptions","organizations_url":"https://api.github.com/users/TiddoLangerak/orgs","repos_url":"https://api.github.com/users/TiddoLangerak/repos","events_url":"https://api.github.com/users/TiddoLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/TiddoLangerak/received_events","type":"User","site_admin":false},"body":"You don't need an additional module. I just tried it locally and it does show up here (both with `console.log(req.query) directly and as a property of `console.log(req)`). Not sure what went wrong exactly, but for next time you can just use that instead.","created_at":"2015-09-22T08:10:29Z","updated_at":"2015-09-22T08:10:29Z","html_url":"https://github.com/inventid/live-image-resize/pull/29#discussion_r40061265","pull_request_url":"https://api.github.com/repos/inventid/live-image-resize/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/inventid/live-image-resize/pulls/comments/40061265"},"html":{"href":"https://github.com/inventid/live-image-resize/pull/29#discussion_r40061265"},"pull_request":{"href":"https://api.github.com/repos/inventid/live-image-resize/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/inventid/live-image-resize/pulls/29","id":45418481,"html_url":"https://github.com/inventid/live-image-resize/pull/29","diff_url":"https://github.com/inventid/live-image-resize/pull/29.diff","patch_url":"https://github.com/inventid/live-image-resize/pull/29.patch","issue_url":"https://api.github.com/repos/inventid/live-image-resize/issues/29","number":29,"state":"closed","locked":false,"title":"Ensure that the resize also crops images upon request, and stores the result in S3.","user":{"login":"michaeldejong","id":794529,"avatar_url":"https://avatars.githubusercontent.com/u/794529?v=3","gravatar_id":"","url":"https://api.github.com/users/michaeldejong","html_url":"https://github.com/michaeldejong","followers_url":"https://api.github.com/users/michaeldejong/followers","following_url":"https://api.github.com/users/michaeldejong/following{/other_user}","gists_url":"https://api.github.com/users/michaeldejong/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeldejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeldejong/subscriptions","organizations_url":"https://api.github.com/users/michaeldejong/orgs","repos_url":"https://api.github.com/users/michaeldejong/repos","events_url":"https://api.github.com/users/michaeldejong/events{/privacy}","received_events_url":"https://api.github.com/users/michaeldejong/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-18T15:21:30Z","updated_at":"2015-09-22T08:10:29Z","closed_at":"2015-09-18T19:34:18Z","merged_at":"2015-09-18T19:34:18Z","merge_commit_sha":"6e23a3caafb59d0147b07a474a4de6915bf5e983","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inventid/live-image-resize/pulls/29/commits","review_comments_url":"https://api.github.com/repos/inventid/live-image-resize/pulls/29/comments","review_comment_url":"https://api.github.com/repos/inventid/live-image-resize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inventid/live-image-resize/issues/29/comments","statuses_url":"https://api.github.com/repos/inventid/live-image-resize/statuses/2bc6c530ab6f597ef0091d7ebb5c86128cb00557","head":{"label":"inventid:cropping","ref":"cropping","sha":"2bc6c530ab6f597ef0091d7ebb5c86128cb00557","user":{"login":"inventid","id":4517861,"avatar_url":"https://avatars.githubusercontent.com/u/4517861?v=3","gravatar_id":"","url":"https://api.github.com/users/inventid","html_url":"https://github.com/inventid","followers_url":"https://api.github.com/users/inventid/followers","following_url":"https://api.github.com/users/inventid/following{/other_user}","gists_url":"https://api.github.com/users/inventid/gists{/gist_id}","starred_url":"https://api.github.com/users/inventid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inventid/subscriptions","organizations_url":"https://api.github.com/users/inventid/orgs","repos_url":"https://api.github.com/users/inventid/repos","events_url":"https://api.github.com/users/inventid/events{/privacy}","received_events_url":"https://api.github.com/users/inventid/received_events","type":"Organization","site_admin":false},"repo":{"id":31164435,"name":"live-image-resize","full_name":"inventid/live-image-resize","owner":{"login":"inventid","id":4517861,"avatar_url":"https://avatars.githubusercontent.com/u/4517861?v=3","gravatar_id":"","url":"https://api.github.com/users/inventid","html_url":"https://github.com/inventid","followers_url":"https://api.github.com/users/inventid/followers","following_url":"https://api.github.com/users/inventid/following{/other_user}","gists_url":"https://api.github.com/users/inventid/gists{/gist_id}","starred_url":"https://api.github.com/users/inventid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inventid/subscriptions","organizations_url":"https://api.github.com/users/inventid/orgs","repos_url":"https://api.github.com/users/inventid/repos","events_url":"https://api.github.com/users/inventid/events{/privacy}","received_events_url":"https://api.github.com/users/inventid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inventid/live-image-resize","description":"Resize images on the fly and store pre-computed results on AWS S3","fork":false,"url":"https://api.github.com/repos/inventid/live-image-resize","forks_url":"https://api.github.com/repos/inventid/live-image-resize/forks","keys_url":"https://api.github.com/repos/inventid/live-image-resize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inventid/live-image-resize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inventid/live-image-resize/teams","hooks_url":"https://api.github.com/repos/inventid/live-image-resize/hooks","issue_events_url":"https://api.github.com/repos/inventid/live-image-resize/issues/events{/number}","events_url":"https://api.github.com/repos/inventid/live-image-resize/events","assignees_url":"https://api.github.com/repos/inventid/live-image-resize/assignees{/user}","branches_url":"https://api.github.com/repos/inventid/live-image-resize/branches{/branch}","tags_url":"https://api.github.com/repos/inventid/live-image-resize/tags","blobs_url":"https://api.github.com/repos/inventid/live-image-resize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inventid/live-image-resize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inventid/live-image-resize/git/refs{/sha}","trees_url":"https://api.github.com/repos/inventid/live-image-resize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inventid/live-image-resize/statuses/{sha}","languages_url":"https://api.github.com/repos/inventid/live-image-resize/languages","stargazers_url":"https://api.github.com/repos/inventid/live-image-resize/stargazers","contributors_url":"https://api.github.com/repos/inventid/live-image-resize/contributors","subscribers_url":"https://api.github.com/repos/inventid/live-image-resize/subscribers","subscription_url":"https://api.github.com/repos/inventid/live-image-resize/subscription","commits_url":"https://api.github.com/repos/inventid/live-image-resize/commits{/sha}","git_commits_url":"https://api.github.com/repos/inventid/live-image-resize/git/commits{/sha}","comments_url":"https://api.github.com/repos/inventid/live-image-resize/comments{/number}","issue_comment_url":"https://api.github.com/repos/inventid/live-image-resize/issues/comments{/number}","contents_url":"https://api.github.com/repos/inventid/live-image-resize/contents/{+path}","compare_url":"https://api.github.com/repos/inventid/live-image-resize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inventid/live-image-resize/merges","archive_url":"https://api.github.com/repos/inventid/live-image-resize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inventid/live-image-resize/downloads","issues_url":"https://api.github.com/repos/inventid/live-image-resize/issues{/number}","pulls_url":"https://api.github.com/repos/inventid/live-image-resize/pulls{/number}","milestones_url":"https://api.github.com/repos/inventid/live-image-resize/milestones{/number}","notifications_url":"https://api.github.com/repos/inventid/live-image-resize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inventid/live-image-resize/labels{/name}","releases_url":"https://api.github.com/repos/inventid/live-image-resize/releases{/id}","created_at":"2015-02-22T13:52:16Z","updated_at":"2015-03-09T12:29:47Z","pushed_at":"2015-09-21T21:19:24Z","git_url":"git://github.com/inventid/live-image-resize.git","ssh_url":"git@github.com:inventid/live-image-resize.git","clone_url":"https://github.com/inventid/live-image-resize.git","svn_url":"https://github.com/inventid/live-image-resize","homepage":null,"size":604,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"inventid:develop","ref":"develop","sha":"bf5104a264752e2fc281d6018ca700c07ad7c1f4","user":{"login":"inventid","id":4517861,"avatar_url":"https://avatars.githubusercontent.com/u/4517861?v=3","gravatar_id":"","url":"https://api.github.com/users/inventid","html_url":"https://github.com/inventid","followers_url":"https://api.github.com/users/inventid/followers","following_url":"https://api.github.com/users/inventid/following{/other_user}","gists_url":"https://api.github.com/users/inventid/gists{/gist_id}","starred_url":"https://api.github.com/users/inventid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inventid/subscriptions","organizations_url":"https://api.github.com/users/inventid/orgs","repos_url":"https://api.github.com/users/inventid/repos","events_url":"https://api.github.com/users/inventid/events{/privacy}","received_events_url":"https://api.github.com/users/inventid/received_events","type":"Organization","site_admin":false},"repo":{"id":31164435,"name":"live-image-resize","full_name":"inventid/live-image-resize","owner":{"login":"inventid","id":4517861,"avatar_url":"https://avatars.githubusercontent.com/u/4517861?v=3","gravatar_id":"","url":"https://api.github.com/users/inventid","html_url":"https://github.com/inventid","followers_url":"https://api.github.com/users/inventid/followers","following_url":"https://api.github.com/users/inventid/following{/other_user}","gists_url":"https://api.github.com/users/inventid/gists{/gist_id}","starred_url":"https://api.github.com/users/inventid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inventid/subscriptions","organizations_url":"https://api.github.com/users/inventid/orgs","repos_url":"https://api.github.com/users/inventid/repos","events_url":"https://api.github.com/users/inventid/events{/privacy}","received_events_url":"https://api.github.com/users/inventid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inventid/live-image-resize","description":"Resize images on the fly and store pre-computed results on AWS S3","fork":false,"url":"https://api.github.com/repos/inventid/live-image-resize","forks_url":"https://api.github.com/repos/inventid/live-image-resize/forks","keys_url":"https://api.github.com/repos/inventid/live-image-resize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inventid/live-image-resize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inventid/live-image-resize/teams","hooks_url":"https://api.github.com/repos/inventid/live-image-resize/hooks","issue_events_url":"https://api.github.com/repos/inventid/live-image-resize/issues/events{/number}","events_url":"https://api.github.com/repos/inventid/live-image-resize/events","assignees_url":"https://api.github.com/repos/inventid/live-image-resize/assignees{/user}","branches_url":"https://api.github.com/repos/inventid/live-image-resize/branches{/branch}","tags_url":"https://api.github.com/repos/inventid/live-image-resize/tags","blobs_url":"https://api.github.com/repos/inventid/live-image-resize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inventid/live-image-resize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inventid/live-image-resize/git/refs{/sha}","trees_url":"https://api.github.com/repos/inventid/live-image-resize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inventid/live-image-resize/statuses/{sha}","languages_url":"https://api.github.com/repos/inventid/live-image-resize/languages","stargazers_url":"https://api.github.com/repos/inventid/live-image-resize/stargazers","contributors_url":"https://api.github.com/repos/inventid/live-image-resize/contributors","subscribers_url":"https://api.github.com/repos/inventid/live-image-resize/subscribers","subscription_url":"https://api.github.com/repos/inventid/live-image-resize/subscription","commits_url":"https://api.github.com/repos/inventid/live-image-resize/commits{/sha}","git_commits_url":"https://api.github.com/repos/inventid/live-image-resize/git/commits{/sha}","comments_url":"https://api.github.com/repos/inventid/live-image-resize/comments{/number}","issue_comment_url":"https://api.github.com/repos/inventid/live-image-resize/issues/comments{/number}","contents_url":"https://api.github.com/repos/inventid/live-image-resize/contents/{+path}","compare_url":"https://api.github.com/repos/inventid/live-image-resize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inventid/live-image-resize/merges","archive_url":"https://api.github.com/repos/inventid/live-image-resize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inventid/live-image-resize/downloads","issues_url":"https://api.github.com/repos/inventid/live-image-resize/issues{/number}","pulls_url":"https://api.github.com/repos/inventid/live-image-resize/pulls{/number}","milestones_url":"https://api.github.com/repos/inventid/live-image-resize/milestones{/number}","notifications_url":"https://api.github.com/repos/inventid/live-image-resize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inventid/live-image-resize/labels{/name}","releases_url":"https://api.github.com/repos/inventid/live-image-resize/releases{/id}","created_at":"2015-02-22T13:52:16Z","updated_at":"2015-03-09T12:29:47Z","pushed_at":"2015-09-21T21:19:24Z","git_url":"git://github.com/inventid/live-image-resize.git","ssh_url":"git@github.com:inventid/live-image-resize.git","clone_url":"https://github.com/inventid/live-image-resize.git","svn_url":"https://github.com/inventid/live-image-resize","homepage":null,"size":604,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/inventid/live-image-resize/pulls/29"},"html":{"href":"https://github.com/inventid/live-image-resize/pull/29"},"issue":{"href":"https://api.github.com/repos/inventid/live-image-resize/issues/29"},"comments":{"href":"https://api.github.com/repos/inventid/live-image-resize/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/inventid/live-image-resize/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/inventid/live-image-resize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inventid/live-image-resize/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/inventid/live-image-resize/statuses/2bc6c530ab6f597ef0091d7ebb5c86128cb00557"}}}}