{"action":"created","comment":{"url":"https://api.github.com/repos/greghendershott/frog/pulls/comments/80969350","pull_request_review_id":1984862,"id":80969350,"diff_hunk":"@@ -0,0 +1,117 @@\n+#lang racket/base\n+\n+(require net/url\n+         racket/contract/base\n+         racket/contract/region\n+         racket/file\n+         racket/function\n+         racket/list\n+         racket/path\n+         racket/port\n+         racket/system\n+         racket/string\n+         \"params.rkt\"\n+         \"util.rkt\"\n+         \"verbosity.rkt\"\n+         (only-in srfi/1 list-index))\n+\n+(provide make-responsive clean-resized-images magick-available?)\n+\n+(define magick-available? (find-executable-path \"magick\"))\n+\n+(module+ test\n+  (require rackunit))\n+\n+(define (image-width path)","path":"frog/responsive-images.rkt","position":25,"original_position":25,"commit_id":"1da3e324e488e6c94e45f3066d110a9b77940693","original_commit_id":"1da3e324e488e6c94e45f3066d110a9b77940693","user":{"login":"greghendershott","id":265119,"avatar_url":"https://avatars.githubusercontent.com/u/265119?v=3","gravatar_id":"","url":"https://api.github.com/users/greghendershott","html_url":"https://github.com/greghendershott","followers_url":"https://api.github.com/users/greghendershott/followers","following_url":"https://api.github.com/users/greghendershott/following{/other_user}","gists_url":"https://api.github.com/users/greghendershott/gists{/gist_id}","starred_url":"https://api.github.com/users/greghendershott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghendershott/subscriptions","organizations_url":"https://api.github.com/users/greghendershott/orgs","repos_url":"https://api.github.com/users/greghendershott/repos","events_url":"https://api.github.com/users/greghendershott/events{/privacy}","received_events_url":"https://api.github.com/users/greghendershott/received_events","type":"User","site_admin":false},"body":"Could this be simplified? I'm not sure I understand why there's the extra `magic-width` function, much less defining `get-width` and calling that? Couldn't the definition of `image-width` simply/directly be what is currently the body of `magic-width`?","created_at":"2016-09-28T17:13:40Z","updated_at":"2016-09-28T17:13:40Z","html_url":"https://github.com/greghendershott/frog/pull/166#discussion_r80969350","pull_request_url":"https://api.github.com/repos/greghendershott/frog/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/greghendershott/frog/pulls/comments/80969350"},"html":{"href":"https://github.com/greghendershott/frog/pull/166#discussion_r80969350"},"pull_request":{"href":"https://api.github.com/repos/greghendershott/frog/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/greghendershott/frog/pulls/166","id":83024424,"html_url":"https://github.com/greghendershott/frog/pull/166","diff_url":"https://github.com/greghendershott/frog/pull/166.diff","patch_url":"https://github.com/greghendershott/frog/pull/166.patch","issue_url":"https://api.github.com/repos/greghendershott/frog/issues/166","number":166,"state":"open","locked":false,"title":"Add support for responsive images","user":{"login":"tger","id":14966,"avatar_url":"https://avatars.githubusercontent.com/u/14966?v=3","gravatar_id":"","url":"https://api.github.com/users/tger","html_url":"https://github.com/tger","followers_url":"https://api.github.com/users/tger/followers","following_url":"https://api.github.com/users/tger/following{/other_user}","gists_url":"https://api.github.com/users/tger/gists{/gist_id}","starred_url":"https://api.github.com/users/tger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tger/subscriptions","organizations_url":"https://api.github.com/users/tger/orgs","repos_url":"https://api.github.com/users/tger/repos","events_url":"https://api.github.com/users/tger/events{/privacy}","received_events_url":"https://api.github.com/users/tger/received_events","type":"User","site_admin":false},"body":"Add the srcset and sizes attribute to img tags whose parent element\r\nclass is 'figure'. Each matched image is made avaiable in three\r\nversion (roughly intended to match a mobile, 1x desktop and 2x/hi-dpi\r\ndesktop clients). Images are cached in a configurable directory.\r\n\r\nDepend on ImageMagick® for size identification and scaling. Making use\r\nof the Racket htdp2/image module as a fall-back is probably possible but\r\nnot implemented.","created_at":"2016-08-28T19:21:44Z","updated_at":"2016-09-28T17:13:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa5c121afdfb54453fe122a7584288f075bea6df","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/greghendershott/frog/pulls/166/commits","review_comments_url":"https://api.github.com/repos/greghendershott/frog/pulls/166/comments","review_comment_url":"https://api.github.com/repos/greghendershott/frog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/greghendershott/frog/issues/166/comments","statuses_url":"https://api.github.com/repos/greghendershott/frog/statuses/1da3e324e488e6c94e45f3066d110a9b77940693","head":{"label":"tger:srcset","ref":"srcset","sha":"1da3e324e488e6c94e45f3066d110a9b77940693","user":{"login":"tger","id":14966,"avatar_url":"https://avatars.githubusercontent.com/u/14966?v=3","gravatar_id":"","url":"https://api.github.com/users/tger","html_url":"https://github.com/tger","followers_url":"https://api.github.com/users/tger/followers","following_url":"https://api.github.com/users/tger/following{/other_user}","gists_url":"https://api.github.com/users/tger/gists{/gist_id}","starred_url":"https://api.github.com/users/tger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tger/subscriptions","organizations_url":"https://api.github.com/users/tger/orgs","repos_url":"https://api.github.com/users/tger/repos","events_url":"https://api.github.com/users/tger/events{/privacy}","received_events_url":"https://api.github.com/users/tger/received_events","type":"User","site_admin":false},"repo":{"id":52913448,"name":"frog","full_name":"tger/frog","owner":{"login":"tger","id":14966,"avatar_url":"https://avatars.githubusercontent.com/u/14966?v=3","gravatar_id":"","url":"https://api.github.com/users/tger","html_url":"https://github.com/tger","followers_url":"https://api.github.com/users/tger/followers","following_url":"https://api.github.com/users/tger/following{/other_user}","gists_url":"https://api.github.com/users/tger/gists{/gist_id}","starred_url":"https://api.github.com/users/tger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tger/subscriptions","organizations_url":"https://api.github.com/users/tger/orgs","repos_url":"https://api.github.com/users/tger/repos","events_url":"https://api.github.com/users/tger/events{/privacy}","received_events_url":"https://api.github.com/users/tger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tger/frog","description":"Frog is a static web site generator implemented in Racket, targeting Bootstrap and able to use Pygments.","fork":true,"url":"https://api.github.com/repos/tger/frog","forks_url":"https://api.github.com/repos/tger/frog/forks","keys_url":"https://api.github.com/repos/tger/frog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tger/frog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tger/frog/teams","hooks_url":"https://api.github.com/repos/tger/frog/hooks","issue_events_url":"https://api.github.com/repos/tger/frog/issues/events{/number}","events_url":"https://api.github.com/repos/tger/frog/events","assignees_url":"https://api.github.com/repos/tger/frog/assignees{/user}","branches_url":"https://api.github.com/repos/tger/frog/branches{/branch}","tags_url":"https://api.github.com/repos/tger/frog/tags","blobs_url":"https://api.github.com/repos/tger/frog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tger/frog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tger/frog/git/refs{/sha}","trees_url":"https://api.github.com/repos/tger/frog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tger/frog/statuses/{sha}","languages_url":"https://api.github.com/repos/tger/frog/languages","stargazers_url":"https://api.github.com/repos/tger/frog/stargazers","contributors_url":"https://api.github.com/repos/tger/frog/contributors","subscribers_url":"https://api.github.com/repos/tger/frog/subscribers","subscription_url":"https://api.github.com/repos/tger/frog/subscription","commits_url":"https://api.github.com/repos/tger/frog/commits{/sha}","git_commits_url":"https://api.github.com/repos/tger/frog/git/commits{/sha}","comments_url":"https://api.github.com/repos/tger/frog/comments{/number}","issue_comment_url":"https://api.github.com/repos/tger/frog/issues/comments{/number}","contents_url":"https://api.github.com/repos/tger/frog/contents/{+path}","compare_url":"https://api.github.com/repos/tger/frog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tger/frog/merges","archive_url":"https://api.github.com/repos/tger/frog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tger/frog/downloads","issues_url":"https://api.github.com/repos/tger/frog/issues{/number}","pulls_url":"https://api.github.com/repos/tger/frog/pulls{/number}","milestones_url":"https://api.github.com/repos/tger/frog/milestones{/number}","notifications_url":"https://api.github.com/repos/tger/frog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tger/frog/labels{/name}","releases_url":"https://api.github.com/repos/tger/frog/releases{/id}","deployments_url":"https://api.github.com/repos/tger/frog/deployments","created_at":"2016-03-01T22:02:47Z","updated_at":"2016-03-01T22:02:48Z","pushed_at":"2016-09-19T15:01:32Z","git_url":"git://github.com/tger/frog.git","ssh_url":"git@github.com:tger/frog.git","clone_url":"https://github.com/tger/frog.git","svn_url":"https://github.com/tger/frog","homepage":"","size":875,"stargazers_count":0,"watchers_count":0,"language":"Racket","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"greghendershott:master","ref":"master","sha":"18cdb9a3d9669f7c3297dacdff243afda4d0f0b5","user":{"login":"greghendershott","id":265119,"avatar_url":"https://avatars.githubusercontent.com/u/265119?v=3","gravatar_id":"","url":"https://api.github.com/users/greghendershott","html_url":"https://github.com/greghendershott","followers_url":"https://api.github.com/users/greghendershott/followers","following_url":"https://api.github.com/users/greghendershott/following{/other_user}","gists_url":"https://api.github.com/users/greghendershott/gists{/gist_id}","starred_url":"https://api.github.com/users/greghendershott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghendershott/subscriptions","organizations_url":"https://api.github.com/users/greghendershott/orgs","repos_url":"https://api.github.com/users/greghendershott/repos","events_url":"https://api.github.com/users/greghendershott/events{/privacy}","received_events_url":"https://api.github.com/users/greghendershott/received_events","type":"User","site_admin":false},"repo":{"id":8730959,"name":"frog","full_name":"greghendershott/frog","owner":{"login":"greghendershott","id":265119,"avatar_url":"https://avatars.githubusercontent.com/u/265119?v=3","gravatar_id":"","url":"https://api.github.com/users/greghendershott","html_url":"https://github.com/greghendershott","followers_url":"https://api.github.com/users/greghendershott/followers","following_url":"https://api.github.com/users/greghendershott/following{/other_user}","gists_url":"https://api.github.com/users/greghendershott/gists{/gist_id}","starred_url":"https://api.github.com/users/greghendershott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghendershott/subscriptions","organizations_url":"https://api.github.com/users/greghendershott/orgs","repos_url":"https://api.github.com/users/greghendershott/repos","events_url":"https://api.github.com/users/greghendershott/events{/privacy}","received_events_url":"https://api.github.com/users/greghendershott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/greghendershott/frog","description":"Frog is a static web site generator implemented in Racket, targeting Bootstrap and able to use Pygments.","fork":false,"url":"https://api.github.com/repos/greghendershott/frog","forks_url":"https://api.github.com/repos/greghendershott/frog/forks","keys_url":"https://api.github.com/repos/greghendershott/frog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greghendershott/frog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greghendershott/frog/teams","hooks_url":"https://api.github.com/repos/greghendershott/frog/hooks","issue_events_url":"https://api.github.com/repos/greghendershott/frog/issues/events{/number}","events_url":"https://api.github.com/repos/greghendershott/frog/events","assignees_url":"https://api.github.com/repos/greghendershott/frog/assignees{/user}","branches_url":"https://api.github.com/repos/greghendershott/frog/branches{/branch}","tags_url":"https://api.github.com/repos/greghendershott/frog/tags","blobs_url":"https://api.github.com/repos/greghendershott/frog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greghendershott/frog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greghendershott/frog/git/refs{/sha}","trees_url":"https://api.github.com/repos/greghendershott/frog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greghendershott/frog/statuses/{sha}","languages_url":"https://api.github.com/repos/greghendershott/frog/languages","stargazers_url":"https://api.github.com/repos/greghendershott/frog/stargazers","contributors_url":"https://api.github.com/repos/greghendershott/frog/contributors","subscribers_url":"https://api.github.com/repos/greghendershott/frog/subscribers","subscription_url":"https://api.github.com/repos/greghendershott/frog/subscription","commits_url":"https://api.github.com/repos/greghendershott/frog/commits{/sha}","git_commits_url":"https://api.github.com/repos/greghendershott/frog/git/commits{/sha}","comments_url":"https://api.github.com/repos/greghendershott/frog/comments{/number}","issue_comment_url":"https://api.github.com/repos/greghendershott/frog/issues/comments{/number}","contents_url":"https://api.github.com/repos/greghendershott/frog/contents/{+path}","compare_url":"https://api.github.com/repos/greghendershott/frog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greghendershott/frog/merges","archive_url":"https://api.github.com/repos/greghendershott/frog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greghendershott/frog/downloads","issues_url":"https://api.github.com/repos/greghendershott/frog/issues{/number}","pulls_url":"https://api.github.com/repos/greghendershott/frog/pulls{/number}","milestones_url":"https://api.github.com/repos/greghendershott/frog/milestones{/number}","notifications_url":"https://api.github.com/repos/greghendershott/frog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greghendershott/frog/labels{/name}","releases_url":"https://api.github.com/repos/greghendershott/frog/releases{/id}","deployments_url":"https://api.github.com/repos/greghendershott/frog/deployments","created_at":"2013-03-12T15:22:46Z","updated_at":"2016-09-27T05:32:07Z","pushed_at":"2016-09-19T15:01:32Z","git_url":"git://github.com/greghendershott/frog.git","ssh_url":"git@github.com:greghendershott/frog.git","clone_url":"https://github.com/greghendershott/frog.git","svn_url":"https://github.com/greghendershott/frog","homepage":"","size":926,"stargazers_count":391,"watchers_count":391,"language":"Racket","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":26,"forks":53,"open_issues":26,"watchers":391,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/greghendershott/frog/pulls/166"},"html":{"href":"https://github.com/greghendershott/frog/pull/166"},"issue":{"href":"https://api.github.com/repos/greghendershott/frog/issues/166"},"comments":{"href":"https://api.github.com/repos/greghendershott/frog/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/greghendershott/frog/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/greghendershott/frog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/greghendershott/frog/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/greghendershott/frog/statuses/1da3e324e488e6c94e45f3066d110a9b77940693"}}}}
{"actor":{"display_login":"greghendershott"}}