Skip to content

Commit

Permalink
feat: resize single logo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsign committed Mar 22, 2024
1 parent 1a061ee commit c828b93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file not shown.
10 changes: 9 additions & 1 deletion scripts/resize-logos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ async function resizeImage(chain: string, filename: string) {
async function main() {
if (process.argv[2] in chains) {
const chain = process.argv[2]
const address = process.argv[3]

// Resize single logo
if (address) {
await resizeImage(chain, `${address}.png`)
return
}

const src = path.join(__dirname, '..', chain, 'logos')

const logos: string[] = []
Expand All @@ -50,7 +58,7 @@ async function main() {
await Promise.all(logos.map(logo => resizeImage(chain, logo)))
return
}

for (const chain in chains) {
const src = path.join(__dirname, '..', chain, 'logos')

Expand Down

0 comments on commit c828b93

Please sign in to comment.