{"action":"reopened","number":1078,"pull_request":{"url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1078","id":27450271,"html_url":"https://github.com/python-pillow/Pillow/pull/1078","diff_url":"https://github.com/python-pillow/Pillow/pull/1078.diff","patch_url":"https://github.com/python-pillow/Pillow/pull/1078.patch","issue_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1078","number":1078,"state":"open","locked":false,"title":"DOC document compress_level option of Image.save for PNG images","user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"body":"`im.save(fp, \"png\", compress_level=1)` usually allows to write PNG images 15-50% faster than with the default compression level; the size is usually 10-15% larger (as pointed by @immerrr). I think it is worths documenting this option.\r\n\r\nIt is used here: https://github.com/python-pillow/Pillow/blob/264f5d0d96968174e7b4a815f12af6613314159a/libImaging/ZipEncode.c#L77\r\n\r\nDefault value is set here: https://github.com/python-pillow/Pillow/blob/264f5d0d96968174e7b4a815f12af6613314159a/encode.c#L471; -1 means `Z_DEFAULT_COMPRESSION`, which is documented to be equal to 6 in zlib docs.","created_at":"2015-01-15T18:25:41Z","updated_at":"2015-01-16T03:07:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcc070aaa1546dfc2f33b1b01710f7dcb8692e50","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1078/commits","review_comments_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1078/comments","review_comment_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/comments/{number}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1078/comments","statuses_url":"https://api.github.com/repos/python-pillow/Pillow/statuses/4713b41ed7f0ed92dad5dff50b6740baec904ff5","head":{"label":"kmike:png-docs","ref":"png-docs","sha":"4713b41ed7f0ed92dad5dff50b6740baec904ff5","user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"repo":{"id":8394598,"name":"Pillow","full_name":"kmike/Pillow","owner":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmike/Pillow","description":"Pillow is the \"friendly\" PIL fork","fork":true,"url":"https://api.github.com/repos/kmike/Pillow","forks_url":"https://api.github.com/repos/kmike/Pillow/forks","keys_url":"https://api.github.com/repos/kmike/Pillow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmike/Pillow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmike/Pillow/teams","hooks_url":"https://api.github.com/repos/kmike/Pillow/hooks","issue_events_url":"https://api.github.com/repos/kmike/Pillow/issues/events{/number}","events_url":"https://api.github.com/repos/kmike/Pillow/events","assignees_url":"https://api.github.com/repos/kmike/Pillow/assignees{/user}","branches_url":"https://api.github.com/repos/kmike/Pillow/branches{/branch}","tags_url":"https://api.github.com/repos/kmike/Pillow/tags","blobs_url":"https://api.github.com/repos/kmike/Pillow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmike/Pillow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmike/Pillow/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmike/Pillow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmike/Pillow/statuses/{sha}","languages_url":"https://api.github.com/repos/kmike/Pillow/languages","stargazers_url":"https://api.github.com/repos/kmike/Pillow/stargazers","contributors_url":"https://api.github.com/repos/kmike/Pillow/contributors","subscribers_url":"https://api.github.com/repos/kmike/Pillow/subscribers","subscription_url":"https://api.github.com/repos/kmike/Pillow/subscription","commits_url":"https://api.github.com/repos/kmike/Pillow/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmike/Pillow/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmike/Pillow/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmike/Pillow/issues/comments/{number}","contents_url":"https://api.github.com/repos/kmike/Pillow/contents/{+path}","compare_url":"https://api.github.com/repos/kmike/Pillow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmike/Pillow/merges","archive_url":"https://api.github.com/repos/kmike/Pillow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmike/Pillow/downloads","issues_url":"https://api.github.com/repos/kmike/Pillow/issues{/number}","pulls_url":"https://api.github.com/repos/kmike/Pillow/pulls{/number}","milestones_url":"https://api.github.com/repos/kmike/Pillow/milestones{/number}","notifications_url":"https://api.github.com/repos/kmike/Pillow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmike/Pillow/labels{/name}","releases_url":"https://api.github.com/repos/kmike/Pillow/releases{/id}","created_at":"2013-02-24T18:35:08Z","updated_at":"2013-11-30T01:31:03Z","pushed_at":"2015-01-15T18:14:34Z","git_url":"git://github.com/kmike/Pillow.git","ssh_url":"git@github.com:kmike/Pillow.git","clone_url":"https://github.com/kmike/Pillow.git","svn_url":"https://github.com/kmike/Pillow","homepage":"http://python-imaging.github.com/Pillow/","size":13052,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python-pillow:master","ref":"master","sha":"264f5d0d96968174e7b4a815f12af6613314159a","user":{"login":"python-pillow","id":2036701,"avatar_url":"https://avatars.githubusercontent.com/u/2036701?v=3","gravatar_id":"","url":"https://api.github.com/users/python-pillow","html_url":"https://github.com/python-pillow","followers_url":"https://api.github.com/users/python-pillow/followers","following_url":"https://api.github.com/users/python-pillow/following{/other_user}","gists_url":"https://api.github.com/users/python-pillow/gists{/gist_id}","starred_url":"https://api.github.com/users/python-pillow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-pillow/subscriptions","organizations_url":"https://api.github.com/users/python-pillow/orgs","repos_url":"https://api.github.com/users/python-pillow/repos","events_url":"https://api.github.com/users/python-pillow/events{/privacy}","received_events_url":"https://api.github.com/users/python-pillow/received_events","type":"Organization","site_admin":false},"repo":{"id":5171600,"name":"Pillow","full_name":"python-pillow/Pillow","owner":{"login":"python-pillow","id":2036701,"avatar_url":"https://avatars.githubusercontent.com/u/2036701?v=3","gravatar_id":"","url":"https://api.github.com/users/python-pillow","html_url":"https://github.com/python-pillow","followers_url":"https://api.github.com/users/python-pillow/followers","following_url":"https://api.github.com/users/python-pillow/following{/other_user}","gists_url":"https://api.github.com/users/python-pillow/gists{/gist_id}","starred_url":"https://api.github.com/users/python-pillow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-pillow/subscriptions","organizations_url":"https://api.github.com/users/python-pillow/orgs","repos_url":"https://api.github.com/users/python-pillow/repos","events_url":"https://api.github.com/users/python-pillow/events{/privacy}","received_events_url":"https://api.github.com/users/python-pillow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-pillow/Pillow","description":"The friendly PIL fork","fork":false,"url":"https://api.github.com/repos/python-pillow/Pillow","forks_url":"https://api.github.com/repos/python-pillow/Pillow/forks","keys_url":"https://api.github.com/repos/python-pillow/Pillow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-pillow/Pillow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-pillow/Pillow/teams","hooks_url":"https://api.github.com/repos/python-pillow/Pillow/hooks","issue_events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/events{/number}","events_url":"https://api.github.com/repos/python-pillow/Pillow/events","assignees_url":"https://api.github.com/repos/python-pillow/Pillow/assignees{/user}","branches_url":"https://api.github.com/repos/python-pillow/Pillow/branches{/branch}","tags_url":"https://api.github.com/repos/python-pillow/Pillow/tags","blobs_url":"https://api.github.com/repos/python-pillow/Pillow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-pillow/Pillow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-pillow/Pillow/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-pillow/Pillow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-pillow/Pillow/statuses/{sha}","languages_url":"https://api.github.com/repos/python-pillow/Pillow/languages","stargazers_url":"https://api.github.com/repos/python-pillow/Pillow/stargazers","contributors_url":"https://api.github.com/repos/python-pillow/Pillow/contributors","subscribers_url":"https://api.github.com/repos/python-pillow/Pillow/subscribers","subscription_url":"https://api.github.com/repos/python-pillow/Pillow/subscription","commits_url":"https://api.github.com/repos/python-pillow/Pillow/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-pillow/Pillow/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-pillow/Pillow/issues/comments/{number}","contents_url":"https://api.github.com/repos/python-pillow/Pillow/contents/{+path}","compare_url":"https://api.github.com/repos/python-pillow/Pillow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-pillow/Pillow/merges","archive_url":"https://api.github.com/repos/python-pillow/Pillow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-pillow/Pillow/downloads","issues_url":"https://api.github.com/repos/python-pillow/Pillow/issues{/number}","pulls_url":"https://api.github.com/repos/python-pillow/Pillow/pulls{/number}","milestones_url":"https://api.github.com/repos/python-pillow/Pillow/milestones{/number}","notifications_url":"https://api.github.com/repos/python-pillow/Pillow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-pillow/Pillow/labels{/name}","releases_url":"https://api.github.com/repos/python-pillow/Pillow/releases{/id}","created_at":"2012-07-24T21:38:39Z","updated_at":"2015-01-16T01:26:48Z","pushed_at":"2015-01-08T08:40:23Z","git_url":"git://github.com/python-pillow/Pillow.git","ssh_url":"git@github.com:python-pillow/Pillow.git","clone_url":"https://github.com/python-pillow/Pillow.git","svn_url":"https://github.com/python-pillow/Pillow","homepage":"http://python-pillow.github.io/","size":20377,"stargazers_count":1428,"watchers_count":1428,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":320,"mirror_url":null,"open_issues_count":62,"forks":320,"open_issues":62,"watchers":1428,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1078"},"html":{"href":"https://github.com/python-pillow/Pillow/pull/1078"},"issue":{"href":"https://api.github.com/repos/python-pillow/Pillow/issues/1078"},"comments":{"href":"https://api.github.com/repos/python-pillow/Pillow/issues/1078/comments"},"review_comments":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1078/comments"},"review_comment":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1078/commits"},"statuses":{"href":"https://api.github.com/repos/python-pillow/Pillow/statuses/4713b41ed7f0ed92dad5dff50b6740baec904ff5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":22,"deletions":16,"changed_files":1}}