Created
November 25, 2021 19:34
-
-
Save thiagoferreiraw/817dac54d4855993cd4191dd2caa070e to your computer and use it in GitHub Desktop.
create_promotional_image_pure_python.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_promotional_image(): | |
with open("promo.png", "wb+") as output_file: | |
create_png_from_svg_template( | |
"coupon/test.svg", | |
{"_WIDTH": 400, "_HEIGHT": 200, "_PROMO_CODE": "ABCD1234"}, | |
output_file, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment