Blog banner generator
I was tired of making banners for my blog posts, so I created a script that does it for me.
Installation
git clone https://github.com/Dhravya/blog-banner-generator.git
cd blog-banner-generator
pip install -r requirements.txt
Config
The default config works well, but if you want your banner to be a different colour, or change the positioning of elements, feel free to edit the config file
Here are the config options (note that this may break the script, because I haven't tested it out much)
BG_COLOR
: rgb(r, g, b)
ART_POSITION
: Coordinates(x, y, size=(430, 430))
TITLE_POSITION
: Coordinates(x, y)
IMG_POSITION
: Coordinates(x, y)
FOOTER_POSITION
: Coordinates(x, y)
FOOTER
: "<your small footer>"
Running the script
You can run the script by using the generate()
method of the ImageFactory
class
if __name__ == "__main__":
generator = ImageFactory()
generator.generate(
... # Options here
)
Generate options:
title
, description
…