chore: update github avatar images (#2762)

zio/stable
TAKAHASHI Shuuji 2024-04-05 23:34:19 +09:00 committed by GitHub
parent f8fc0efadc
commit a27c218802
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 0 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -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' })