{"action":"opened","issue":{"url":"https://api.github.com/repos/eos3tion/ExportUIFromFlash/issues/4","repository_url":"https://api.github.com/repos/eos3tion/ExportUIFromFlash","labels_url":"https://api.github.com/repos/eos3tion/ExportUIFromFlash/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/eos3tion/ExportUIFromFlash/issues/4/comments","events_url":"https://api.github.com/repos/eos3tion/ExportUIFromFlash/issues/4/events","html_url":"https://github.com/eos3tion/ExportUIFromFlash/issues/4","id":209659332,"number":4,"title":"可以将图片生成webp格式的文件","user":{"login":"eos3tion","id":8804051,"avatar_url":"https://avatars.githubusercontent.com/u/8804051?v=3","gravatar_id":"","url":"https://api.github.com/users/eos3tion","html_url":"https://github.com/eos3tion","followers_url":"https://api.github.com/users/eos3tion/followers","following_url":"https://api.github.com/users/eos3tion/following{/other_user}","gists_url":"https://api.github.com/users/eos3tion/gists{/gist_id}","starred_url":"https://api.github.com/users/eos3tion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eos3tion/subscriptions","organizations_url":"https://api.github.com/users/eos3tion/orgs","repos_url":"https://api.github.com/users/eos3tion/repos","events_url":"https://api.github.com/users/eos3tion/events{/privacy}","received_events_url":"https://api.github.com/users/eos3tion/received_events","type":"User","site_admin":false},"labels":[{"id":351739195,"url":"https://api.github.com/repos/eos3tion/ExportUIFromFlash/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-23T04:11:57Z","updated_at":"2017-02-23T04:11:57Z","closed_at":null,"body":"1. 在生成图片的同时，生成对应版本的webp格式文件\r\n2. 游戏启动时，检查浏览器是否原生支持webp格式\r\n    ```js\r\n    function checkWebp() {\r\n        try {\r\n            return (document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') == 0);\r\n        } catch (err) {\r\n            return false;\r\n        }\r\n    }\r\n    ```\r\n3. 如果浏览器支持webp（Android手机高版本浏览器原生支持webp），则加载webp格式资源，否则加载对应jpg/png"}}
{"actor":{"display_login":"eos3tion"}}