{"action":"opened","issue":{"url":"https://api.github.com/repos/aramk/crayon-syntax-highlighter/issues/309","labels_url":"https://api.github.com/repos/aramk/crayon-syntax-highlighter/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/aramk/crayon-syntax-highlighter/issues/309/comments","events_url":"https://api.github.com/repos/aramk/crayon-syntax-highlighter/issues/309/events","html_url":"https://github.com/aramk/crayon-syntax-highlighter/issues/309","id":111525518,"number":309,"title":"Optimize PNG assets","user":{"login":"rfnx","id":7004526,"avatar_url":"https://avatars.githubusercontent.com/u/7004526?v=3","gravatar_id":"","url":"https://api.github.com/users/rfnx","html_url":"https://github.com/rfnx","followers_url":"https://api.github.com/users/rfnx/followers","following_url":"https://api.github.com/users/rfnx/following{/other_user}","gists_url":"https://api.github.com/users/rfnx/gists{/gist_id}","starred_url":"https://api.github.com/users/rfnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfnx/subscriptions","organizations_url":"https://api.github.com/users/rfnx/orgs","repos_url":"https://api.github.com/users/rfnx/repos","events_url":"https://api.github.com/users/rfnx/events{/privacy}","received_events_url":"https://api.github.com/users/rfnx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-15T01:12:27Z","updated_at":"2015-10-15T01:12:27Z","closed_at":null,"body":"Hello,\r\n\r\nPNG assets can be optimized, for example with optipng. I was able to reduce the size by 50% on buttons.png and buttons@2x.png, which are loaded for every visitors, without reducing quality. For some other assets, I was able to divide the size by more than 5 (for example /css/images/thumb_horizontal.png) !\r\n\r\nIt's very simple with optipng (available on every Linux distribution) : \r\n`\r\noptipng -o7 -strip all file.png\r\n`\r\nand to easily optimize all png in a directory and subdirectories : \r\n`\r\nfind /path/to/dir -iname '*.png' -exec optipng -backup -o7 -strip all {} \\;\r\n`\r\nIt is a lot of bytes saved for a very small effort :)\r\n\r\nThanks for this amazing plugin !"}}