Watermarked Image
A template invoking a simple watermark on an image, inspired by Reddit's new watermarking template. But with a twist.
Dimensions¶
800px x 450px
You will likely need to manually determine the width/height before passing them to generate()
Parameters¶
Name | Description | Default |
---|---|---|
left_text |
Left text for the watermark | "Made by **me**!" |
fa_icon |
Font Awesome icon | "fas fa-laptop-house |
brand_text |
Text of the brand. | "My brand!" |
background |
Image of the meme (URL or local path.) | Mona Lisa |
custom_css |
Custom CSS; refer to the raw template for HTML elements. | Empty |
Example Usage¶
(note: due to file-size [about 500KB per image], the images included on this page have been compressed using TinyPNG)
Set up imgmaker:
from imgmaker import imgmaker
i = imgmaker()
No configuration:
i.generate("watermark")
Change the text and the icon.
i.generate(
"watermark",
{"left_text": "_Mona Lisa_, by Leonardo da Vinci",
"fa_icon": "fas fa-paint-brush",
"brand_text": "Renaissance"
},
)
This template is responsive: if the width is less than 768px, to avoid text overlap, only the brand + icon will display.
i.generate(
"watermark",
{"left_text": "_Mona Lisa_, by Leonardo da Vinci",
"fa_icon": "fas fa-paint-brush",
"brand_text": "Renaissance"
},
width=450
)