mirror of
https://github.com/aljazceru/Image-Quote-Generator.git
synced 2025-12-19 15:04:24 +01:00
Update main.py
This commit is contained in:
13
main.py
13
main.py
@@ -2,12 +2,11 @@ import os
|
|||||||
import post_handler
|
import post_handler
|
||||||
import helper
|
import helper
|
||||||
|
|
||||||
# Available topics: christian, fitness
|
|
||||||
TOPIC = "christian"
|
TOPIC = "christian" # Available topics: christian, fitness
|
||||||
SHOW_AUTHOR = False
|
SHOW_AUTHOR = False # Shows the author of the quote under the quote (if available)
|
||||||
CUSTOMER_NAME = "your_name"
|
CUSTOMER_NAME = "your_name"
|
||||||
# Disable limit: -1, it will create images according to the amount of quotes in the .txt file
|
NUM_OF_POSTS = 35 # Disable limit: -1 (will create images according to the amount of quotes in the .txt file)
|
||||||
NUM_OF_POSTS = -1
|
|
||||||
|
|
||||||
''' To create a new topic, please follow these steps:
|
''' To create a new topic, please follow these steps:
|
||||||
1. Create a {topic}.txt file inside /sources/text_data
|
1. Create a {topic}.txt file inside /sources/text_data
|
||||||
@@ -36,9 +35,7 @@ logo_file = f"{project_dir}/sources/logo.png"
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# helper.create_new_topic_dirs(TOPIC, project_dir)
|
# helper.create_new_topic_dirs(TOPIC, project_dir)
|
||||||
|
# helper.fix_text_syntax(quote_font, text_file) # Goes through the .txt file and fixes chars for some fonts
|
||||||
# helper.fix_text_syntax(quote_font, text_file)
|
|
||||||
|
|
||||||
# helper.cut_images_new(images_folder, images_folder_cropped)
|
# helper.cut_images_new(images_folder, images_folder_cropped)
|
||||||
# helper.darken_images(images_folder_cropped, images_folder_cropped_darken)
|
# helper.darken_images(images_folder_cropped, images_folder_cropped_darken)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user