NotLuksus / nft-art-generator

A tool to generate generative NFT art projects.
MIT License
1.61k stars 532 forks source link

UnhandledPromiseRejectionWarning: Error: Couldn't load image #24

Open oswinkil-git opened 2 years ago

oswinkil-git commented 2 years ago

cmd_TC31jGqxzk

this error pops up every time I attempt to generate metadata.

Julian2leiria commented 2 years ago

Same error too, after generate thr NFT... "Couldn't load image" then the Metadata file don't generate... With 2 files it's ok but with 2000 or 10000... nop...

Julian2leiria commented 2 years ago

" Known issues: Some special characters may resolve in some "File couldnt be loaded" errors. Try to remove any special characters from your file paths to resolve "...

yrik commented 2 years ago
⠹ Generating images/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:39
            img.onerror = function () { return reject(new Error('Couldn\'t load image: ' + source + ', ' + JSON.stringify(sources))); };
                                                      ^

Error: Couldn't load image: [object Object], ["/Users/yura/cryptosnailsart/images/1-body/snailsalat.png","/Users/yura/cryptosnailsart/images/2-shell/undefined","/Users/yura/cryptosnailsart/images/3-vip/king.png","/Users/yura/cryptosnailsart/images/4-eyes/simple.png","/Users/yura/cryptosnailsart/images/5-emotion/crazysmile.png"]
    at img.onerror (/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:39:46)
    at Image.<anonymous> (<anonymous>)
    at setSource (/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/canvas/lib/image.js:91:13)
    at Image.set (/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/canvas/lib/image.js:62:9)
    at /Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:41:12
    at new Promise (<anonymous>)
    at /Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:30:55
    at Array.map (<anonymous>)
    at /Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:30:24

it get's undefined as a path somehow

Julian2leiria commented 2 years ago

Hello, Finally I do every part without 'space' or 'special letter' and everything is complete!

yrik commented 2 years ago

for me it fails on 9996

Colnnn commented 2 years ago

for me it fails on 9996

I'm still unable to get this to work, have removed all spaces and special chars, but always seem to be getting the same error. Images do generate but I can't seem to see the metadata.

Colnnn commented 2 years ago

Hello, Finally I do every part without 'space' or 'special letter' and everything is complete!

  • 2000 Images
  • metadata.json ... TY

Hi, may i check how many traits are you using to create 2000 images, can't seem to get mine to work

kleozzy commented 2 years ago

Tried no spaces , no tags nothing I still get the couldn't load images error