Skip to content

[Bug]: Unsupported Image Type #203

@AlexAliosha

Description

@AlexAliosha

Version

  • Yes

General Question

  • No

What happened?

Creates 2 or 3 nfts and after gives an unsupported image type error

What have you tried?

I Googled and asked the community in the discord server but could not find a solution.

Relevant log output

PS C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1> npm run generate

> [email protected] generate
> node index.js

(node:13524) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Created edition: 1, with DNA: 7839c35d60830f6d08f694ff4c708ab8849bca69
Created edition: 2, with DNA: 997b84a2f27c7f48a52892777a223e94646f2e8c
C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\node_modules\canvas\lib\image.js:91
  SetSource.call(img, src);
            ^

Error: Unsupported image type
    at Image.set (C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\node_modules\canvas\lib\image.js:62:9)
    at C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\node_modules\canvas\index.js:34:15
    at new Promise (<anonymous>)
    at loadImage (C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\node_modules\canvas\index.js:23:10)
    at C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\src\main.js:184:25
    at new Promise (<anonymous>)
    at loadLayerImg (C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\src\main.js:183:10)
    at C:\Users\alios\OneDrive\Desktop\create-10k-nft-collection-2.0.1\src\main.js:364:31
    at Array.forEach (<anonymous>)

Protect your information

  • I Agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions