nftgon
v1.2.2
Published
NFT-ize any avatar
Downloads
13
Readme
Turn any 1:1 sized avatar into an NFT!
Installation
- Install nodejs
- Install NFTgon
- Global (Required for CLI)
npm install -g nftgon
- Locally
npm install nftgon
- Global (Required for CLI)
Usage
CLI
Currently all images output to .png ONLY, I will add jpeg support later
Usage: nftgon [OPTIONS] input [input...]
-o, --output PATH
Specify output path
-O --options {\"key\": value}
Comma separated list of options
Refer to this for a list of all options
Example:nftgon -o ./hexagoned.png -O {\"compressionLevel\": 5 } https://picsum.photos/400/400 ./test.jpg
Node.js
const { NFTGon } = require("nftgon");
const imgIn = "https://picsum.photos/400/400";
const imgOut = NFTGon.nftify(imgIn);
const png = imgOut.createPNGStream({compressionLevel: 6});