This is one of my first Python projects, hope you get the most out of it :)
I used it to sell Fitness and Christian quotes on Fiverr for a while.
After choosing the topics I wanted, I got a list of quotes and a stock of 50+ background images - both related to the picked topic.
After getting enough images, I run those 2 functions:
helper.cut_images_new(): to crop the images to the desired dimensions.
helper.darken_images(): to darken the images so the text looks better.
The script works by taking a background image from '/sources/images/{topic}' and a quote from the .txt file, and combining them into 1 photo.
I am using PILLOW to generate the text in different fonts and combine it with the background image.
All the images are copyright-free from stock footage websites, and the fonts are copyright-free as well.
Follow the instructions given below to get this script up and running on your device.
pip install -r requirements.txt
)TOPIC = "fitness"
SHOW_AUTHOR = True
CUSTOMER_NAME = "your_name"
NUM_OF_POSTS = 35
generated/your_name/
directory.To create a new topic, please follow these steps:
ANS THAT'S IT! :) Feel free to create a Pull Request if you want to help others as well!
PILLOW - For generating text images
After running the script you will get:
Note that this script is very basic as of now. If you want to contribute, you are free to do so and you may even fork and improve this repository.