{"action":"created","issue":{"url":"https://api.github.com/repos/reddit/reddit/issues/1238","labels_url":"https://api.github.com/repos/reddit/reddit/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/reddit/reddit/issues/1238/comments","events_url":"https://api.github.com/repos/reddit/reddit/issues/1238/events","html_url":"https://github.com/reddit/reddit/pull/1238","id":54485809,"number":1238,"title":"Losslessly reduced non-sprite PNGs with Optipng and Advancecomp.","user":{"login":"KeenRivals","id":6865789,"avatar_url":"https://avatars.githubusercontent.com/u/6865789?v=3","gravatar_id":"","url":"https://api.github.com/users/KeenRivals","html_url":"https://github.com/KeenRivals","followers_url":"https://api.github.com/users/KeenRivals/followers","following_url":"https://api.github.com/users/KeenRivals/following{/other_user}","gists_url":"https://api.github.com/users/KeenRivals/gists{/gist_id}","starred_url":"https://api.github.com/users/KeenRivals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeenRivals/subscriptions","organizations_url":"https://api.github.com/users/KeenRivals/orgs","repos_url":"https://api.github.com/users/KeenRivals/repos","events_url":"https://api.github.com/users/KeenRivals/events{/privacy}","received_events_url":"https://api.github.com/users/KeenRivals/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T18:30:01Z","updated_at":"2015-02-04T00:25:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reddit/reddit/pulls/1238","html_url":"https://github.com/reddit/reddit/pull/1238","diff_url":"https://github.com/reddit/reddit/pull/1238.diff","patch_url":"https://github.com/reddit/reddit/pull/1238.patch"},"body":"Coming back from #1237, only PNGs that were referenced in less files that were not commented as sprites were reduced. Size of the target PNGs was losslessly reduced from 483KiB to 365KiB for 118KiB savings (24%).\r\n\r\nI should mention with the sprite, it would be possible to save about 1KiB by using advdef -z4 -i60 on it. But I'm not really sure how you would incorporate that into your less build process (I am not familiar with less) and given the gains are so small for that one file it may not be worth the effort."},"comment":{"url":"https://api.github.com/repos/reddit/reddit/issues/comments/72766324","html_url":"https://github.com/reddit/reddit/pull/1238#issuecomment-72766324","issue_url":"https://api.github.com/repos/reddit/reddit/issues/1238","id":72766324,"user":{"login":"xiongchiamiov","id":23369,"avatar_url":"https://avatars.githubusercontent.com/u/23369?v=3","gravatar_id":"","url":"https://api.github.com/users/xiongchiamiov","html_url":"https://github.com/xiongchiamiov","followers_url":"https://api.github.com/users/xiongchiamiov/followers","following_url":"https://api.github.com/users/xiongchiamiov/following{/other_user}","gists_url":"https://api.github.com/users/xiongchiamiov/gists{/gist_id}","starred_url":"https://api.github.com/users/xiongchiamiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiongchiamiov/subscriptions","organizations_url":"https://api.github.com/users/xiongchiamiov/orgs","repos_url":"https://api.github.com/users/xiongchiamiov/repos","events_url":"https://api.github.com/users/xiongchiamiov/events{/privacy}","received_events_url":"https://api.github.com/users/xiongchiamiov/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T00:25:00Z","updated_at":"2015-02-04T00:25:00Z","body":"> I should mention with the sprite, it would be possible to save about 1KiB by using advdef -z4 -i60 on it. But I'm not really sure how you would incorporate that into your less build process (I am not familiar with less)\r\n\r\nThe spriting stuff is all done in Python, actually, in [`lib/nymph.py`](https://github.com/reddit/reddit/blob/master/r2/r2/lib/nymph.py) (which [is run](https://github.com/reddit/reddit/blob/master/r2/Makefile#L165) by the Makefile)."}}