Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unsupported Image Type #203

Open
3 tasks done
AlexAliosha opened this issue Oct 1, 2022 · 0 comments
Open
3 tasks done

[Bug]: Unsupported Image Type #203

AlexAliosha opened this issue Oct 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@AlexAliosha
Copy link

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
@AlexAliosha AlexAliosha added the bug Something isn't working label Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant