{"action":"created","comment":{"url":"https://api.github.com/repos/toy/image_optim/pulls/comments/70170718","id":70170718,"diff_hunk":"@@ -3,6 +3,7 @@\n ## unreleased\n \n * Use quality `0..100` by default in lossy mode of pngquant worker [#77](https://github.com/toy/image_optim/issues/77) [@toy](https://github.com/toy)\n+* Don't do anything when \"optimized\" version is larger and `:skip_bigger => true` [@R167](https://github.com/R167)","path":"CHANGELOG.markdown","position":4,"original_position":4,"commit_id":"01cd8b6c69cc7f4ad50baad6e110b8a2923dea6e","original_commit_id":"01cd8b6c69cc7f4ad50baad6e110b8a2923dea6e","user":{"login":"toy","id":18144,"avatar_url":"https://avatars.githubusercontent.com/u/18144?v=3","gravatar_id":"","url":"https://api.github.com/users/toy","html_url":"https://github.com/toy","followers_url":"https://api.github.com/users/toy/followers","following_url":"https://api.github.com/users/toy/following{/other_user}","gists_url":"https://api.github.com/users/toy/gists{/gist_id}","starred_url":"https://api.github.com/users/toy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toy/subscriptions","organizations_url":"https://api.github.com/users/toy/orgs","repos_url":"https://api.github.com/users/toy/repos","events_url":"https://api.github.com/users/toy/events{/privacy}","received_events_url":"https://api.github.com/users/toy/received_events","type":"User","site_admin":false},"body":"Issue number is missing","created_at":"2016-07-09T18:51:38Z","updated_at":"2016-07-09T18:51:38Z","html_url":"https://github.com/toy/image_optim/pull/95#discussion_r70170718","pull_request_url":"https://api.github.com/repos/toy/image_optim/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/toy/image_optim/pulls/comments/70170718"},"html":{"href":"https://github.com/toy/image_optim/pull/95#discussion_r70170718"},"pull_request":{"href":"https://api.github.com/repos/toy/image_optim/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/toy/image_optim/pulls/95","id":41640002,"html_url":"https://github.com/toy/image_optim/pull/95","diff_url":"https://github.com/toy/image_optim/pull/95.diff","patch_url":"https://github.com/toy/image_optim/pull/95.patch","issue_url":"https://api.github.com/repos/toy/image_optim/issues/95","number":95,"state":"open","locked":false,"title":"Don't overwrite original if optimized is larger","user":{"login":"R167","id":4950148,"avatar_url":"https://avatars.githubusercontent.com/u/4950148?v=3","gravatar_id":"","url":"https://api.github.com/users/R167","html_url":"https://github.com/R167","followers_url":"https://api.github.com/users/R167/followers","following_url":"https://api.github.com/users/R167/following{/other_user}","gists_url":"https://api.github.com/users/R167/gists{/gist_id}","starred_url":"https://api.github.com/users/R167/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R167/subscriptions","organizations_url":"https://api.github.com/users/R167/orgs","repos_url":"https://api.github.com/users/R167/repos","events_url":"https://api.github.com/users/R167/events{/privacy}","received_events_url":"https://api.github.com/users/R167/received_events","type":"User","site_admin":false},"body":"Currently, the original image gets overwritten if the optimized version is larger (happens in some cases). Changing it so that only the smaller image is preserved when `optimize_image!` is called.","created_at":"2015-08-05T03:17:31Z","updated_at":"2016-07-09T18:51:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f08df30f00689d6a4acf277eb739f78a743e72c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/toy/image_optim/pulls/95/commits","review_comments_url":"https://api.github.com/repos/toy/image_optim/pulls/95/comments","review_comment_url":"https://api.github.com/repos/toy/image_optim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toy/image_optim/issues/95/comments","statuses_url":"https://api.github.com/repos/toy/image_optim/statuses/01cd8b6c69cc7f4ad50baad6e110b8a2923dea6e","head":{"label":"weheartit:master","ref":"master","sha":"01cd8b6c69cc7f4ad50baad6e110b8a2923dea6e","user":{"login":"weheartit","id":585390,"avatar_url":"https://avatars.githubusercontent.com/u/585390?v=3","gravatar_id":"","url":"https://api.github.com/users/weheartit","html_url":"https://github.com/weheartit","followers_url":"https://api.github.com/users/weheartit/followers","following_url":"https://api.github.com/users/weheartit/following{/other_user}","gists_url":"https://api.github.com/users/weheartit/gists{/gist_id}","starred_url":"https://api.github.com/users/weheartit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weheartit/subscriptions","organizations_url":"https://api.github.com/users/weheartit/orgs","repos_url":"https://api.github.com/users/weheartit/repos","events_url":"https://api.github.com/users/weheartit/events{/privacy}","received_events_url":"https://api.github.com/users/weheartit/received_events","type":"Organization","site_admin":false},"repo":{"id":40220499,"name":"image_optim","full_name":"weheartit/image_optim","owner":{"login":"weheartit","id":585390,"avatar_url":"https://avatars.githubusercontent.com/u/585390?v=3","gravatar_id":"","url":"https://api.github.com/users/weheartit","html_url":"https://github.com/weheartit","followers_url":"https://api.github.com/users/weheartit/followers","following_url":"https://api.github.com/users/weheartit/following{/other_user}","gists_url":"https://api.github.com/users/weheartit/gists{/gist_id}","starred_url":"https://api.github.com/users/weheartit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weheartit/subscriptions","organizations_url":"https://api.github.com/users/weheartit/orgs","repos_url":"https://api.github.com/users/weheartit/repos","events_url":"https://api.github.com/users/weheartit/events{/privacy}","received_events_url":"https://api.github.com/users/weheartit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weheartit/image_optim","description":"Optimize images using multiple utilities","fork":true,"url":"https://api.github.com/repos/weheartit/image_optim","forks_url":"https://api.github.com/repos/weheartit/image_optim/forks","keys_url":"https://api.github.com/repos/weheartit/image_optim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weheartit/image_optim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weheartit/image_optim/teams","hooks_url":"https://api.github.com/repos/weheartit/image_optim/hooks","issue_events_url":"https://api.github.com/repos/weheartit/image_optim/issues/events{/number}","events_url":"https://api.github.com/repos/weheartit/image_optim/events","assignees_url":"https://api.github.com/repos/weheartit/image_optim/assignees{/user}","branches_url":"https://api.github.com/repos/weheartit/image_optim/branches{/branch}","tags_url":"https://api.github.com/repos/weheartit/image_optim/tags","blobs_url":"https://api.github.com/repos/weheartit/image_optim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weheartit/image_optim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weheartit/image_optim/git/refs{/sha}","trees_url":"https://api.github.com/repos/weheartit/image_optim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weheartit/image_optim/statuses/{sha}","languages_url":"https://api.github.com/repos/weheartit/image_optim/languages","stargazers_url":"https://api.github.com/repos/weheartit/image_optim/stargazers","contributors_url":"https://api.github.com/repos/weheartit/image_optim/contributors","subscribers_url":"https://api.github.com/repos/weheartit/image_optim/subscribers","subscription_url":"https://api.github.com/repos/weheartit/image_optim/subscription","commits_url":"https://api.github.com/repos/weheartit/image_optim/commits{/sha}","git_commits_url":"https://api.github.com/repos/weheartit/image_optim/git/commits{/sha}","comments_url":"https://api.github.com/repos/weheartit/image_optim/comments{/number}","issue_comment_url":"https://api.github.com/repos/weheartit/image_optim/issues/comments{/number}","contents_url":"https://api.github.com/repos/weheartit/image_optim/contents/{+path}","compare_url":"https://api.github.com/repos/weheartit/image_optim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weheartit/image_optim/merges","archive_url":"https://api.github.com/repos/weheartit/image_optim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weheartit/image_optim/downloads","issues_url":"https://api.github.com/repos/weheartit/image_optim/issues{/number}","pulls_url":"https://api.github.com/repos/weheartit/image_optim/pulls{/number}","milestones_url":"https://api.github.com/repos/weheartit/image_optim/milestones{/number}","notifications_url":"https://api.github.com/repos/weheartit/image_optim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weheartit/image_optim/labels{/name}","releases_url":"https://api.github.com/repos/weheartit/image_optim/releases{/id}","deployments_url":"https://api.github.com/repos/weheartit/image_optim/deployments","created_at":"2015-08-05T02:36:37Z","updated_at":"2015-08-05T02:36:38Z","pushed_at":"2015-08-12T17:07:57Z","git_url":"git://github.com/weheartit/image_optim.git","ssh_url":"git@github.com:weheartit/image_optim.git","clone_url":"https://github.com/weheartit/image_optim.git","svn_url":"https://github.com/weheartit/image_optim","homepage":"https://github.com/toy/image_optim","size":1014,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"toy:master","ref":"master","sha":"337fd9cdcf84c5847be3a468610b1841a4fbc9e2","user":{"login":"toy","id":18144,"avatar_url":"https://avatars.githubusercontent.com/u/18144?v=3","gravatar_id":"","url":"https://api.github.com/users/toy","html_url":"https://github.com/toy","followers_url":"https://api.github.com/users/toy/followers","following_url":"https://api.github.com/users/toy/following{/other_user}","gists_url":"https://api.github.com/users/toy/gists{/gist_id}","starred_url":"https://api.github.com/users/toy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toy/subscriptions","organizations_url":"https://api.github.com/users/toy/orgs","repos_url":"https://api.github.com/users/toy/repos","events_url":"https://api.github.com/users/toy/events{/privacy}","received_events_url":"https://api.github.com/users/toy/received_events","type":"User","site_admin":false},"repo":{"id":3113269,"name":"image_optim","full_name":"toy/image_optim","owner":{"login":"toy","id":18144,"avatar_url":"https://avatars.githubusercontent.com/u/18144?v=3","gravatar_id":"","url":"https://api.github.com/users/toy","html_url":"https://github.com/toy","followers_url":"https://api.github.com/users/toy/followers","following_url":"https://api.github.com/users/toy/following{/other_user}","gists_url":"https://api.github.com/users/toy/gists{/gist_id}","starred_url":"https://api.github.com/users/toy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toy/subscriptions","organizations_url":"https://api.github.com/users/toy/orgs","repos_url":"https://api.github.com/users/toy/repos","events_url":"https://api.github.com/users/toy/events{/privacy}","received_events_url":"https://api.github.com/users/toy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toy/image_optim","description":"Optimize images using multiple utilities","fork":false,"url":"https://api.github.com/repos/toy/image_optim","forks_url":"https://api.github.com/repos/toy/image_optim/forks","keys_url":"https://api.github.com/repos/toy/image_optim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toy/image_optim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toy/image_optim/teams","hooks_url":"https://api.github.com/repos/toy/image_optim/hooks","issue_events_url":"https://api.github.com/repos/toy/image_optim/issues/events{/number}","events_url":"https://api.github.com/repos/toy/image_optim/events","assignees_url":"https://api.github.com/repos/toy/image_optim/assignees{/user}","branches_url":"https://api.github.com/repos/toy/image_optim/branches{/branch}","tags_url":"https://api.github.com/repos/toy/image_optim/tags","blobs_url":"https://api.github.com/repos/toy/image_optim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toy/image_optim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toy/image_optim/git/refs{/sha}","trees_url":"https://api.github.com/repos/toy/image_optim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toy/image_optim/statuses/{sha}","languages_url":"https://api.github.com/repos/toy/image_optim/languages","stargazers_url":"https://api.github.com/repos/toy/image_optim/stargazers","contributors_url":"https://api.github.com/repos/toy/image_optim/contributors","subscribers_url":"https://api.github.com/repos/toy/image_optim/subscribers","subscription_url":"https://api.github.com/repos/toy/image_optim/subscription","commits_url":"https://api.github.com/repos/toy/image_optim/commits{/sha}","git_commits_url":"https://api.github.com/repos/toy/image_optim/git/commits{/sha}","comments_url":"https://api.github.com/repos/toy/image_optim/comments{/number}","issue_comment_url":"https://api.github.com/repos/toy/image_optim/issues/comments{/number}","contents_url":"https://api.github.com/repos/toy/image_optim/contents/{+path}","compare_url":"https://api.github.com/repos/toy/image_optim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toy/image_optim/merges","archive_url":"https://api.github.com/repos/toy/image_optim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toy/image_optim/downloads","issues_url":"https://api.github.com/repos/toy/image_optim/issues{/number}","pulls_url":"https://api.github.com/repos/toy/image_optim/pulls{/number}","milestones_url":"https://api.github.com/repos/toy/image_optim/milestones{/number}","notifications_url":"https://api.github.com/repos/toy/image_optim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toy/image_optim/labels{/name}","releases_url":"https://api.github.com/repos/toy/image_optim/releases{/id}","deployments_url":"https://api.github.com/repos/toy/image_optim/deployments","created_at":"2012-01-05T21:03:14Z","updated_at":"2016-07-09T16:04:56Z","pushed_at":"2016-07-09T15:58:47Z","git_url":"git://github.com/toy/image_optim.git","ssh_url":"git@github.com:toy/image_optim.git","clone_url":"https://github.com/toy/image_optim.git","svn_url":"https://github.com/toy/image_optim","homepage":"https://github.com/toy/image_optim","size":1271,"stargazers_count":873,"watchers_count":873,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":37,"forks":70,"open_issues":37,"watchers":873,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toy/image_optim/pulls/95"},"html":{"href":"https://github.com/toy/image_optim/pull/95"},"issue":{"href":"https://api.github.com/repos/toy/image_optim/issues/95"},"comments":{"href":"https://api.github.com/repos/toy/image_optim/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/toy/image_optim/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/toy/image_optim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toy/image_optim/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/toy/image_optim/statuses/01cd8b6c69cc7f4ad50baad6e110b8a2923dea6e"}}}}
{"actor":{"display_login":"toy"}}