HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

Baseimage uri #47

Closed EvilShaggz closed 2 years ago

EvilShaggz commented 2 years ago

Hi everyone i am wanting to store my images and metadata on ipfs for persistence is there a way to make this program generate the baseimgeuri as an ipfs cid and store this in the metadata?

beepboprobop commented 2 years ago

Having this problem also

EvilShaggz commented 2 years ago

Solid logic except the ipfs link is is individual to each png and is not a simple incremental

Thanks ponda

EvilShaggz commented 2 years ago

Thats great news ponda now i have to figure out how to program a app to go through each json file and update the baseimageuri can you point me in the right direction?

migsdeving commented 2 years ago

You can actually do that by creating a folder on IPFS. That folder will have an unique CID then you can later add a "/image.png" to the end of the link and it will show you the image inside that folder. For example. You create a folder and you put an image called 'image.png' inside. Your link to that image will be : https://ipfs.io/ipfs/'FOLDERCID/image.png
This works but has two problems: People can figure out which NFT's will correspond to each image before minting. You won't be able to ever edit those images too.

EvilShaggz commented 2 years ago

every time i add a file to the ipfs folder I created it changes the folders hash so I can't use that as the baseimage uri am I missing something?

migsdeving commented 2 years ago

I just discovered that happened too and now I'm kinda stuck. I don't wanna be paying for a server forever . Sorry for misleading you , I thought the hash didn't change

A terça, 7/09/2021, 13:09, EvilShaggz @.***> escreveu:

every time i add a file to the ipfs folder I created it changes the folders hash so I can't use that as the baseimage uri am I missing something?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HashLips/generative-art-opensource/issues/47#issuecomment-914249446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVQD4LI677X4VXJ7HQVEFM3UAX6F5ANCNFSM5DPMOJTA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

EvilShaggz commented 2 years ago

all Good i appreciate the help anyway,

back to learning fumbling my way through coding videos -_-

Ponda1 commented 2 years ago

@EvilShaggz did my comments not give you the solution? I deleted them because not only is this issue out of the scope of this repository but also because id rather have someone experienced give a "proper" coding solution to this problem rather than using my "trick".

EvilShaggz commented 2 years ago

Hey ponda no it didnt really fix the issue and is this really out of scope conidering the code has baseimgaeuri in it happy to close and look elsewhere if others agree

Thanks