nftgon
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Turn any 1:1 sized avatar into an NFT!
Example

Installation

  1. Install nodejs
  2. Install NFTgon
    • Global (Required for CLI)
      npm install -g nftgon
    • Locally
      npm install nftgon

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});

Readme

Keywords

Package Sidebar

Install

npm i nftgon

Weekly Downloads

0

Version

1.2.2

License

GPL-3.0

Unpacked Size

297 kB

Total Files

10

Last publish

Collaborators

  • 3gigs