4 ms·
cool project. Can we see some example magic cards created? thanks!
by ramonverse 3y ago
cool project. Can we see some example magic cards created? thanks!
- minimaxir 3y agoMade a few demos on Twitter: https://twitter.com/minimaxir/status/1777378034238030255 https://twitter.com/minimaxir/status/1777378034238030255 https://twitter.com/minimaxir/status/1777378037199179840 https://twitter.com/minimaxir/status/1777378037199179840 EDIT: Added image to the header of the notebook.
- vgalin 2y ago(Disclaimer, I'm the maintainer of this package, but this kind of use is exactly why I created it at the beginning) If you know how to use HTML+CSS and would like to generate full-fledged cards, you could use a package such as html2image [0] to combine the text, the image and a card-template image into one final image. Chrome/Chromium has to be available on Colab Notebooks though, that's the only requirement. Using basic SVG without this package could also do the trick. [0] https://github.com/vgalin/html2image https://github.com/vgalin/html2image
- minimaxir 2y agoI had worked on a similar package for similar reasons but yes, Chromium is too big of a dependency. I have an idea for a non-Chromium implementation but that’s a rabbit hole.
- vtbassmatt 2y agoSince you’re already in Python, perhaps my `skit` package could be of service? https://pypi.org/project/skit-game/ https://pypi.org/project/skit-game/ It depends on Python and Pillow.