Create a tool to help you create a favicon.
Closed this issue · 2 comments
CarsonSlovoka commented
代辦事項
- 支援直接寫
<svg>
進來 https://github.com/CarsonSlovoka/go-src/issues/74 8512d11
- 可以下載fontawesome的SVG圖片 (這種東西可以方便您加在github的README.md之中當成首頁的圖標) 960fcf6
- 可以瀏覽本地的圖案(png)來進行轉換(調整大小) (fbbadc7)
- 能從網上取得到的png轉換為圖標 (需解決PNG尺寸的問題,對任意尺寸都要適用) (37e211a)
- 可以轉換Fontawesome的圖標 (5819e2a)
找尋icon
首版內容記錄
關於icon的細節
- 必須是方形的: you should ensure that all of your icons are square
- 如果要上架置chrome至少要有一個128大小的圖標: You should always provide a 128x128 icon; it's used during installation and by the Chrome Web Store.
- 最好要提供32大小的圖標(已用在windows): Windows often requires 32-pixel icons
CarsonSlovoka commented
CarsonSlovoka commented
b497f39
舊有的寫法強制等待一段時間是不好的,第一時間可能會抓不準
await new Promise(resolve => setTimeout(resolve, 50))
因此包在Promise裡面,搭配timeout防止resolve沒辦法得到,如此就能以最快的速度加載完成也能顧及順序。