Skip to content

mathigatti/ai-generated-cards-deck

Repository files navigation

AI Generated Cards Deck

These are scripts used to create a deck of cards and website. Credits to Matias Sj for helping in the development.

Technical details

  • From a list of challenges/card titles I used prompt-chatgpt.txt to generate cards.csv
  • cards.csv It the card titles + the visual description necessary to generate the illustrations + an optional text description in case the card requires extra explanation
  • generate-illustration.py It generates the cards for each visual description in cards.py and saves them at images folder
  • generate-final-card.py It goes through the images folder and puts that together with the optional descriptions in cards.csv, the card frames at frames and some prefered font in the fonts folder.
  • resize.py This converts all images to a smaller size and jpg format so they are lighter and the website is fast.

Card example