mirror of
https://github.com/aljazceru/Image-Quote-Generator.git
synced 2025-12-18 22:44:27 +01:00
finish fitness
This commit is contained in:
23
main.py
23
main.py
@@ -5,8 +5,8 @@ import helper
|
||||
# Available topics: christian, fitness
|
||||
TOPIC = "fitness"
|
||||
SHOW_AUTHOR = True
|
||||
CUSTOMER_NAME = "test_author"
|
||||
NUM_OF_POSTS = 3 # If number of posts if set to -1, it will so as many posts as in the data file
|
||||
CUSTOMER_NAME = "final_no_logo"
|
||||
NUM_OF_POSTS = -1 # If number of posts if set to -1, it will so as many posts as in the data file
|
||||
|
||||
# Define the paths and values to everything
|
||||
project_dir = os.getcwd().replace("\\", "/")
|
||||
@@ -14,8 +14,9 @@ images_folder = f"{project_dir}/sources/images/{TOPIC}"
|
||||
images_folder_cropped = f"{images_folder}/cropped"
|
||||
images_folder_cropped_darken = f"{images_folder_cropped}/darken"
|
||||
text_file = f"{project_dir}/sources/text_data/{TOPIC}.txt"
|
||||
quote_font = f"{project_dir}/sources/fonts/MouldyCheeseRegular-WyMWG.ttf"
|
||||
author_font= f"{project_dir}/sources/fonts/MouldyCheeseRegular-WyMWG.ttf"
|
||||
# quote_font = f"{project_dir}/sources/fonts/MouldyCheeseRegular-WyMWG.ttf" # Bible
|
||||
quote_font = f"{project_dir}/sources/fonts/Bebas-KM7y.ttf" # Fitness
|
||||
author_font = f"{project_dir}/sources/fonts/MangabeyRegular-rgqVO.otf"
|
||||
output_folder = f"{project_dir}/customers/{TOPIC}"
|
||||
logo_file = f"{project_dir}/sources/logo.png"
|
||||
|
||||
@@ -23,16 +24,18 @@ logo_file = f"{project_dir}/sources/logo.png"
|
||||
if __name__ == "__main__":
|
||||
# helper.create_new_topic_dirs(TOPIC, project_dir)
|
||||
|
||||
# helper.fix_text_syntax(quote_font, text_file)
|
||||
|
||||
# helper.cut_images_new(images_folder, images_folder_cropped)
|
||||
# helper.darken_images(images_folder_cropped, images_folder_cropped_darken)
|
||||
|
||||
# LOGO
|
||||
post_handler.create_posts(images_folder=images_folder_cropped_darken, text_file=text_file,
|
||||
quote_font=quote_font, author_font=author_font, output_folder=output_folder,
|
||||
logo_file=logo_file, customer_name=CUSTOMER_NAME, number_of_posts=NUM_OF_POSTS, show_author=SHOW_AUTHOR)
|
||||
# post_handler.create_posts(images_folder=images_folder_cropped_darken, text_file=text_file,
|
||||
# quote_font=quote_font, author_font=author_font, output_folder=output_folder,
|
||||
# logo_file=logo_file, customer_name=CUSTOMER_NAME, number_of_posts=NUM_OF_POSTS, show_author=SHOW_AUTHOR)
|
||||
|
||||
# NO LOGO
|
||||
# post_handler.create_posts(images_folder=images_folder_cropped_darken, text_file=text_file,
|
||||
# font_dir=font_dir, output_folder=output_folder,
|
||||
# customer_name=customer_name, number_of_posts=number_of_posts)
|
||||
post_handler.create_posts(images_folder=images_folder_cropped_darken, text_file=text_file,
|
||||
quote_font=quote_font, author_font=author_font, output_folder=output_folder,
|
||||
customer_name=CUSTOMER_NAME, number_of_posts=NUM_OF_POSTS, show_author=SHOW_AUTHOR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user