5 ms·
(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 l
by 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.