Skip to content

Custom background images #4

Answered by josehenriqueroveda
jhrov asked this question in Q&A
Discussion options

You must be logged in to vote

Inside the directory: app/assets/ there are two folders: landscape and portrait. Put the new images or replace the existing, using numbers as names (eg. 5.jpg, 6.jpg), then change the random range in the following file: app/routers/v1/art_maker_router.py on the following lines, replacing the number 4, to the max range of images you have.

path = f"{BACKGROUND_IMAGE_MOBILE_DIR}/{random.randint(1, 4)}.jpg"
path = f"{BACKGROUND_IMAGE_DIR}/{random.randint(1, 4)}.jpg"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jhrov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants