chore: update github avatar images (#2762)
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -9,9 +9,6 @@ const avatarsDir = resolve('./public/avatars/')
|
|||||||
const sizes = [60, 100]
|
const sizes = [60, 100]
|
||||||
|
|
||||||
async function download(url: string, fileName: string) {
|
async function download(url: string, fileName: string) {
|
||||||
if (fs.existsSync(fileName))
|
|
||||||
return
|
|
||||||
|
|
||||||
console.log('downloading', fileName)
|
console.log('downloading', fileName)
|
||||||
try {
|
try {
|
||||||
const image = await ofetch(url, { responseType: 'arrayBuffer' })
|
const image = await ofetch(url, { responseType: 'arrayBuffer' })
|
||||||
|