Custom background images #4
-
How to use custom background images? |
Beta Was this translation helpful? Give feedback.
Answered by
josehenriqueroveda
Mar 6, 2024
Replies: 1 comment
-
Inside the directory: path = f"{BACKGROUND_IMAGE_MOBILE_DIR}/{random.randint(1, 4)}.jpg"
path = f"{BACKGROUND_IMAGE_DIR}/{random.randint(1, 4)}.jpg" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jhrov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inside the directory:
app/assets/
there are two folders:landscape
andportrait
. 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 number4
, to the max range of images you have.