Skip to content

flowerpowerdao/punks-generation-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions 🛠

preparation 🍱

  • create folder in root of project called assets
  • add your assets to the assets folder
  • cd into generator
  • run poetry install
  • adapt the generator.py, oracle.py and utils.py files to your needs
  • change generator = 'ethflower_generator.generator:stop_mint' to generator = 'ethflower_generator.generator:assemble_svgs'
  • make sure you use the right constants at the top of generator.py
  • run poetry run generator
  • profit? 💫

helpers 💪

decrease size of pngs in batch

for name in *.png
do
    sips -Z 200 "$name" -o "_thumbnail_${name}"
done

rename in batch

 for name in *                                                                                                                        ✔
do
    mv "$name" "_thumbnail_${name}"
done

remove prefix in batch

for file in *;do
mv $file ${file#BG_}
done

swap prefix and suffix in batch

for file in WHITE_*;do                                                        ✔
name=${file#WHITE_}
echo mv $file ${name%.png}_WHITE.png
done

uploading 💾

  • you cant upload the entire collection at once, split it in half and upload each half

About

Scripts to generate the Punks collections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages