{"action":"opened","number":3588,"pull_request":{"url":"https://api.github.com/repos/r888888888/danbooru/pulls/3588","id":178473755,"html_url":"https://github.com/r888888888/danbooru/pull/3588","diff_url":"https://github.com/r888888888/danbooru/pull/3588.diff","patch_url":"https://github.com/r888888888/danbooru/pull/3588.patch","issue_url":"https://api.github.com/repos/r888888888/danbooru/issues/3588","number":3588,"state":"open","locked":false,"title":"Add limits on max dimensions of uploads","user":{"login":"evazion","id":8430473,"avatar_url":"https://avatars2.githubusercontent.com/u/8430473?v=4","gravatar_id":"","url":"https://api.github.com/users/evazion","html_url":"https://github.com/evazion","followers_url":"https://api.github.com/users/evazion/followers","following_url":"https://api.github.com/users/evazion/following{/other_user}","gists_url":"https://api.github.com/users/evazion/gists{/gist_id}","starred_url":"https://api.github.com/users/evazion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evazion/subscriptions","organizations_url":"https://api.github.com/users/evazion/orgs","repos_url":"https://api.github.com/users/evazion/repos","events_url":"https://api.github.com/users/evazion/events{/privacy}","received_events_url":"https://api.github.com/users/evazion/received_events","type":"User","site_admin":false},"body":"Related to #3570. Adds these limits to uploads:\r\n\r\n* Max image width: 40000\r\n* Max image height: 40000\r\n* Max image resolution (width * height): 441 megapixels (equivalent to a 21000x21000 image)\r\n\r\nThese values were chosen to be slightly bigger than the current biggest images on the site. [post #442772](https://danbooru.donmai.us/posts/442772) is the tallest at 500x39401 and [post #2889454](https://danbooru.donmai.us/posts/2889454) is the highest resolution at 408 megapixels (16918x24138).\r\n\r\nThese limits are to prevent a DoS attack on the image resizer. Excessively large images can require hundreds of gigabytes of memory to resize. See [here](https://www.bamsoftware.com/hacks/deflate.html) for an example of a 6MB, 225000x225000 PNG file that would take 141GB of memory to decompress and resize.\r\n","created_at":"2018-03-30T00:51:26Z","updated_at":"2018-03-30T00:51:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/r888888888/danbooru/pulls/3588/commits","review_comments_url":"https://api.github.com/repos/r888888888/danbooru/pulls/3588/comments","review_comment_url":"https://api.github.com/repos/r888888888/danbooru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/r888888888/danbooru/issues/3588/comments","statuses_url":"https://api.github.com/repos/r888888888/danbooru/statuses/c0c41dd369b4f7193113699a7f58c7b48a1ef061","head":{"label":"evazion:fix-3570","ref":"fix-3570","sha":"c0c41dd369b4f7193113699a7f58c7b48a1ef061","user":{"login":"evazion","id":8430473,"avatar_url":"https://avatars2.githubusercontent.com/u/8430473?v=4","gravatar_id":"","url":"https://api.github.com/users/evazion","html_url":"https://github.com/evazion","followers_url":"https://api.github.com/users/evazion/followers","following_url":"https://api.github.com/users/evazion/following{/other_user}","gists_url":"https://api.github.com/users/evazion/gists{/gist_id}","starred_url":"https://api.github.com/users/evazion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evazion/subscriptions","organizations_url":"https://api.github.com/users/evazion/orgs","repos_url":"https://api.github.com/users/evazion/repos","events_url":"https://api.github.com/users/evazion/events{/privacy}","received_events_url":"https://api.github.com/users/evazion/received_events","type":"User","site_admin":false},"repo":{"id":23452634,"name":"danbooru","full_name":"evazion/danbooru","owner":{"login":"evazion","id":8430473,"avatar_url":"https://avatars2.githubusercontent.com/u/8430473?v=4","gravatar_id":"","url":"https://api.github.com/users/evazion","html_url":"https://github.com/evazion","followers_url":"https://api.github.com/users/evazion/followers","following_url":"https://api.github.com/users/evazion/following{/other_user}","gists_url":"https://api.github.com/users/evazion/gists{/gist_id}","starred_url":"https://api.github.com/users/evazion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evazion/subscriptions","organizations_url":"https://api.github.com/users/evazion/orgs","repos_url":"https://api.github.com/users/evazion/repos","events_url":"https://api.github.com/users/evazion/events{/privacy}","received_events_url":"https://api.github.com/users/evazion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evazion/danbooru","description":"Danbooru is a taggable image board written in Rails 3.","fork":true,"url":"https://api.github.com/repos/evazion/danbooru","forks_url":"https://api.github.com/repos/evazion/danbooru/forks","keys_url":"https://api.github.com/repos/evazion/danbooru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evazion/danbooru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evazion/danbooru/teams","hooks_url":"https://api.github.com/repos/evazion/danbooru/hooks","issue_events_url":"https://api.github.com/repos/evazion/danbooru/issues/events{/number}","events_url":"https://api.github.com/repos/evazion/danbooru/events","assignees_url":"https://api.github.com/repos/evazion/danbooru/assignees{/user}","branches_url":"https://api.github.com/repos/evazion/danbooru/branches{/branch}","tags_url":"https://api.github.com/repos/evazion/danbooru/tags","blobs_url":"https://api.github.com/repos/evazion/danbooru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evazion/danbooru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evazion/danbooru/git/refs{/sha}","trees_url":"https://api.github.com/repos/evazion/danbooru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evazion/danbooru/statuses/{sha}","languages_url":"https://api.github.com/repos/evazion/danbooru/languages","stargazers_url":"https://api.github.com/repos/evazion/danbooru/stargazers","contributors_url":"https://api.github.com/repos/evazion/danbooru/contributors","subscribers_url":"https://api.github.com/repos/evazion/danbooru/subscribers","subscription_url":"https://api.github.com/repos/evazion/danbooru/subscription","commits_url":"https://api.github.com/repos/evazion/danbooru/commits{/sha}","git_commits_url":"https://api.github.com/repos/evazion/danbooru/git/commits{/sha}","comments_url":"https://api.github.com/repos/evazion/danbooru/comments{/number}","issue_comment_url":"https://api.github.com/repos/evazion/danbooru/issues/comments{/number}","contents_url":"https://api.github.com/repos/evazion/danbooru/contents/{+path}","compare_url":"https://api.github.com/repos/evazion/danbooru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evazion/danbooru/merges","archive_url":"https://api.github.com/repos/evazion/danbooru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evazion/danbooru/downloads","issues_url":"https://api.github.com/repos/evazion/danbooru/issues{/number}","pulls_url":"https://api.github.com/repos/evazion/danbooru/pulls{/number}","milestones_url":"https://api.github.com/repos/evazion/danbooru/milestones{/number}","notifications_url":"https://api.github.com/repos/evazion/danbooru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evazion/danbooru/labels{/name}","releases_url":"https://api.github.com/repos/evazion/danbooru/releases{/id}","deployments_url":"https://api.github.com/repos/evazion/danbooru/deployments","created_at":"2014-08-29T04:32:08Z","updated_at":"2017-01-05T01:37:00Z","pushed_at":"2018-03-30T00:25:11Z","git_url":"git://github.com/evazion/danbooru.git","ssh_url":"git@github.com:evazion/danbooru.git","clone_url":"https://github.com/evazion/danbooru.git","svn_url":"https://github.com/evazion/danbooru","homepage":"http://devbooru.evazion.ml","size":46233,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"r888888888:master","ref":"master","sha":"4ff5af626f0efe64e1b6488bc2cc926dd09abb19","user":{"login":"r888888888","id":197031,"avatar_url":"https://avatars1.githubusercontent.com/u/197031?v=4","gravatar_id":"","url":"https://api.github.com/users/r888888888","html_url":"https://github.com/r888888888","followers_url":"https://api.github.com/users/r888888888/followers","following_url":"https://api.github.com/users/r888888888/following{/other_user}","gists_url":"https://api.github.com/users/r888888888/gists{/gist_id}","starred_url":"https://api.github.com/users/r888888888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r888888888/subscriptions","organizations_url":"https://api.github.com/users/r888888888/orgs","repos_url":"https://api.github.com/users/r888888888/repos","events_url":"https://api.github.com/users/r888888888/events{/privacy}","received_events_url":"https://api.github.com/users/r888888888/received_events","type":"User","site_admin":false},"repo":{"id":502760,"name":"danbooru","full_name":"r888888888/danbooru","owner":{"login":"r888888888","id":197031,"avatar_url":"https://avatars1.githubusercontent.com/u/197031?v=4","gravatar_id":"","url":"https://api.github.com/users/r888888888","html_url":"https://github.com/r888888888","followers_url":"https://api.github.com/users/r888888888/followers","following_url":"https://api.github.com/users/r888888888/following{/other_user}","gists_url":"https://api.github.com/users/r888888888/gists{/gist_id}","starred_url":"https://api.github.com/users/r888888888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r888888888/subscriptions","organizations_url":"https://api.github.com/users/r888888888/orgs","repos_url":"https://api.github.com/users/r888888888/repos","events_url":"https://api.github.com/users/r888888888/events{/privacy}","received_events_url":"https://api.github.com/users/r888888888/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/r888888888/danbooru","description":"Danbooru is a taggable image board written in Rails 4.","fork":false,"url":"https://api.github.com/repos/r888888888/danbooru","forks_url":"https://api.github.com/repos/r888888888/danbooru/forks","keys_url":"https://api.github.com/repos/r888888888/danbooru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r888888888/danbooru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r888888888/danbooru/teams","hooks_url":"https://api.github.com/repos/r888888888/danbooru/hooks","issue_events_url":"https://api.github.com/repos/r888888888/danbooru/issues/events{/number}","events_url":"https://api.github.com/repos/r888888888/danbooru/events","assignees_url":"https://api.github.com/repos/r888888888/danbooru/assignees{/user}","branches_url":"https://api.github.com/repos/r888888888/danbooru/branches{/branch}","tags_url":"https://api.github.com/repos/r888888888/danbooru/tags","blobs_url":"https://api.github.com/repos/r888888888/danbooru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r888888888/danbooru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r888888888/danbooru/git/refs{/sha}","trees_url":"https://api.github.com/repos/r888888888/danbooru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r888888888/danbooru/statuses/{sha}","languages_url":"https://api.github.com/repos/r888888888/danbooru/languages","stargazers_url":"https://api.github.com/repos/r888888888/danbooru/stargazers","contributors_url":"https://api.github.com/repos/r888888888/danbooru/contributors","subscribers_url":"https://api.github.com/repos/r888888888/danbooru/subscribers","subscription_url":"https://api.github.com/repos/r888888888/danbooru/subscription","commits_url":"https://api.github.com/repos/r888888888/danbooru/commits{/sha}","git_commits_url":"https://api.github.com/repos/r888888888/danbooru/git/commits{/sha}","comments_url":"https://api.github.com/repos/r888888888/danbooru/comments{/number}","issue_comment_url":"https://api.github.com/repos/r888888888/danbooru/issues/comments{/number}","contents_url":"https://api.github.com/repos/r888888888/danbooru/contents/{+path}","compare_url":"https://api.github.com/repos/r888888888/danbooru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r888888888/danbooru/merges","archive_url":"https://api.github.com/repos/r888888888/danbooru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r888888888/danbooru/downloads","issues_url":"https://api.github.com/repos/r888888888/danbooru/issues{/number}","pulls_url":"https://api.github.com/repos/r888888888/danbooru/pulls{/number}","milestones_url":"https://api.github.com/repos/r888888888/danbooru/milestones{/number}","notifications_url":"https://api.github.com/repos/r888888888/danbooru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r888888888/danbooru/labels{/name}","releases_url":"https://api.github.com/repos/r888888888/danbooru/releases{/id}","deployments_url":"https://api.github.com/repos/r888888888/danbooru/deployments","created_at":"2010-02-04T19:59:27Z","updated_at":"2018-03-29T16:56:50Z","pushed_at":"2018-03-30T00:34:03Z","git_url":"git://github.com/r888888888/danbooru.git","ssh_url":"git@github.com:r888888888/danbooru.git","clone_url":"https://github.com/r888888888/danbooru.git","svn_url":"https://github.com/r888888888/danbooru","homepage":"http://testbooru.donmai.us","size":45937,"stargazers_count":554,"watchers_count":554,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":141,"mirror_url":null,"archived":false,"open_issues_count":244,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":141,"open_issues":244,"watchers":554,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/r888888888/danbooru/pulls/3588"},"html":{"href":"https://github.com/r888888888/danbooru/pull/3588"},"issue":{"href":"https://api.github.com/repos/r888888888/danbooru/issues/3588"},"comments":{"href":"https://api.github.com/repos/r888888888/danbooru/issues/3588/comments"},"review_comments":{"href":"https://api.github.com/repos/r888888888/danbooru/pulls/3588/comments"},"review_comment":{"href":"https://api.github.com/repos/r888888888/danbooru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/r888888888/danbooru/pulls/3588/commits"},"statuses":{"href":"https://api.github.com/repos/r888888888/danbooru/statuses/c0c41dd369b4f7193113699a7f58c7b48a1ef061"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":37,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"evazion"}}