[image gen] allow overlays onto cards while drawing#773
Conversation
added the ability to create overlays
Allows for overlays on the MonsterDex Discord bot instance -- some changes will have to be made to allow integration with the base bot, but concept is same
|
This drastically changes the defaults of the generator, it should be done in a way that if there's no changes then someone wouldn't notice. also it saves back to PNG which you shouldn't due - keep it as WEBPAGE due to its compression |
|
Perhaps I'm biased, but I would prefer #740 and then these sorts of changes (which are cool) could be easily be implemented by a renderer in a third party package |
I didn’t realise how many things actually changed from the base bot - I built this feature for the MonsterDex bot which already had some changes from the original BallsDex image generator code, it’s really only 1 block that would need changing. I’ll look over and compare this to the original image_gen.py code and attempt to make a more coherent version 👍 |
It’s really not a massive change, I think I made it seem like more than it is accidentally lmao I plan on revising the code and re-releasing a better version to be more easily compatible |
Description of the changes
I've updated the
image_gen.pyfunctionality so it allows for overlays onto the collector_card section of the image, this allows for cooler, 3D designs which can include different light effects, filters, or other overlayed features.Were the changes in this PR tested?
To test: