A close up of a moon with a small moon in the background

Prompts
Copy
from PIL import Image
,
ImageDraw
,
ImageFont
# Loads the image of the moon
moon = Image
.
open('moon
.
jpg') # Replace 'moon
.
jpg' with the correct path to your moon image
# Carries the image of man
man = Image
.
open('man
.
png') # Replace 'man
.
png' with the correct path to your image of man
# Resizes the moon image to suit the desired size
moon = moon
.
resize((800
,
800))
# Puts man on the moon
moon
.
paste(man
,
(250
,
200)
,
man)
# Loads the notebook image
notebook = Image
.
open('notebook
.
png') # Replace 'notebook
.
png' with the correct path to your notebook image
# Resizes the notebook image
notebook = notebook
.
resize((400
,
400))
# Puts the notebook in the hands of man
lua
.
paste(notebook
,
(350
,
350)
,
notebook)
# Loads a font to use in the text
font = ImageFont
.
truetype('arial
.
ttf'
,
40) # Replace 'arial
.
ttf' with the correct path to your font
# Adds a text to the image
draw = ImageDraw
.
Draw(moon)
text = "Trading in cryptocurrencies"
posicao_texto = (100
,
100)
cor_texto = (255
,
255
,
255) # Text color (white)
draw
.
text(posicao_texto
,
text
,
font=font
,
fill=cor_texto)
# Saves the resulting image
lua
.
save('homem_na_lua
.
png') # Replace 'homem_na_lua
.
png' with the desired path and name for the final image
INFO
Checkpoint & LoRA

Checkpoint
Lyriel
0 comment
0
0
0