Token and chain images for front ends built with the Squid SDK
Convert all .svg
and .png
files in /images/master
to 128x128 PNGs and WebPs in /images/png128
and /images/webp128
by default.
yarn convert
You can specify a different size by passing the --size
argument:
The following command will create 500x500 PNGs and WebPs in /images/png500
and /images/webp500
respectively.
yarn convert --size=500
Compare folders size
yarn compare
Mac:
brew install librsvg webp imagemagick
Linux:
sudo apt-get update
sudo apt-get install librsvg2-bin webp imagemagick
.
├── package.json
├── images
│ ├── master
│ │ ├── chains
│ │ │ └── ethereum.svg
│ │ ├── tokens
│ │ │ └── eth.svg
│ │ └── wallets
│ │ └── metamask.svg
│ ├── png
│ │ ├── chains
│ │ │ └── ethereum.png
│ │ ├── tokens
│ │ │ └── eth.png
│ │ └── wallets
│ │ └── metamask.png
├ └── webp
│ ├── chains
│ │ └── ethereum.webp
│ ├── tokens
│ │ └── eth.webp
│ └── wallets
│ └── metamask.webp
└── scripts
└── convert.sh