This commit is contained in:
Mykola 2020-04-11 13:24:56 -07:00
parent ecd9f0cd13
commit cdd32904b3
3 changed files with 4 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -24,7 +24,8 @@ tinify.key = "MXxhvmhjMkMM6CVccGrfyQm2RHpTf1G7"; // Key is free to get, gives 50
function downsize() {
console.log(`Start resizing`)
bluebird.mapSeries(foundChains, async chain => {
bluebird.map(foundChains, async chain => {
console.log(`Resizing assets on chain ${chain}`)
const chainLogoPath = getChainLogoPath(chain)
const { width: srcWidth, heigth: srcHeight } = getImageDimentions(chainLogoPath)
@ -71,6 +72,8 @@ function downsize() {
}
})
}
console.log(` Resizing assets on chain ${chain} completed`)
})
}