banner_image ×
SeaArt AI Enterprise Version

From PIL import Image, ImageDraw, ImageFont # Crear una nueva imagen en blanco

from PIL import Image, ImageDraw, ImageFont

# Crear una nueva imagen en blanco (600x800 pixels)
width, height = 600, 800
background_color = (255, 255, 255)  # blanco
image = Image.new("RGB", (width, height), background_color)

# Crear un objeto para dibujar
draw = ImageDraw.Draw(image)

# Cargar una fuente
try:
    # Try to load a TTF font if font is available_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
    font_title = ImageFont.truetype(font_path, 50)
    font_text = ImageFont.truetype(font_path, 30)
    font_footer = ImageFont.truetype(font_path, 24)
except IOError:
    # Fuente por defecto si no se encuentra la TTF
    font_title = ImageFont.load_default()
    font_text = ImageFont.load_default()
    font_footer = ImageFont.load_default()

# Add a blue rectangle at the top for the title draw.rectangle([0, 0, width, 200], fill=(30, 144, 255))

# Add title text title_text = "Happy Father's Day"
draw.text((width/2, 100), title_text, fill="white", font=font_title, anchor="mm")

# Add restaurant text restaurant_text = "Te desea el Restaurante MamaJuana"
draw.text((width/2, 400), restaurant_text, fill="black", font=font_text, anchor="mm")

# Add a blue rectangle at the bottom for the draw footer.rectangle([0, height - 100, width, height], fill=(30, 144, 255))

# Add footer text footer_text = "Let's celebrate together!"
draw.text((width/2, height - 50), footer_text, fill="white", font=font_footer, anchor="mm")

# Guardar la imagen
image.save("/mnt/data/flyer_dia_del_padre.png")
chatIcon
There are some topics only suitable for us to discuss.
Create AI Character
image
avatar
R
Rosi
Generation Data
Records
Prompts
Copy
from PIL import Image , ImageDraw , ImageFont # Crear una nueva imagen en blanco (600x800 pixels) width , height = 600 , 800 background_color = (255 , 255 , 255) # blanco image = Image . new("RGB" , (width , height) , background_color) # Crear un objeto para dibujar draw = ImageDraw . Draw(image) # Cargar una fuente try: # Try to load a TTF font if font is available_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold . ttf" font_title = ImageFont . truetype(font_path , 50) font_text = ImageFont . truetype(font_path , 30) font_footer = ImageFont . truetype(font_path , 24) except IOError: # Fuente por defecto si no se encuentra la TTF font_title = ImageFont . load_default() font_text = ImageFont . load_default() font_footer = ImageFont . load_default() # Add a blue rectangle at the top for the title draw . rectangle([0 , 0 , width , 200] , fill=(30 , 144 , 255)) # Add title text title_text = "Happy Father&#39 ; s Day" draw . text((width/2 , 100) , title_text , fill="white" , font=font_title , anchor="mm") # Add restaurant text restaurant_text = "Te desea el Restaurante MamaJuana" draw . text((width/2 , 400) , restaurant_text , fill="black" , font=font_text , anchor="mm") # Add a blue rectangle at the bottom for the draw footer . rectangle([0 , height - 100 , width , height] , fill=(30 , 144 , 255)) # Add footer text footer_text = "Let&#39 ; s celebrate together ! " draw . text((width/2 , height - 50) , footer_text , fill="white" , font=font_footer , anchor="mm") # Guardar la imagen image . save("/mnt/data/flyer_dia_del_padre . png")
INFO
Prompts
from PIL import Image, ImageDraw, ImageFont # Crear una nueva imagen en blanco (600x800 pixels) width, height = 600, 800 background_color = (255, 255, 255) # blanco image = Image.new("RGB", (width, height), background_color) # Crear un objeto para dibujar draw = ImageDraw.Draw(image) # Cargar una fuente try: # Try to load a TTF font if font is available_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf" font_title = ImageFont.truetype(font_path, 50) font_text = ImageFont.truetype(font_path, 30) font_footer = ImageFont.truetype(font_path, 24) except IOError: # Fuente por defecto si no se encuentra la TTF font_title = ImageFont.load_default() font_text = ImageFont.load_default() font_footer = ImageFont.load_default() # Add a blue rectangle at the top for the title draw.rectangle([0, 0, width, 200], fill=(30, 144, 255)) # Add title text title_text = "Happy Father's Day" draw.text((width/2, 100), title_text, fill="white", font=font_title, anchor="mm") # Add restaurant text restaurant_text = "Te desea el Restaurante MamaJuana" draw.text((width/2, 400), restaurant_text, fill="black", font=font_text, anchor="mm") # Add a blue rectangle at the bottom for the draw footer.rectangle([0, height - 100, width, height], fill=(30, 144, 255)) # Add footer text footer_text = "Let's celebrate together!" draw.text((width/2, height - 50), footer_text, fill="white", font=font_footer, anchor="mm") # Guardar la imagen image.save("/mnt/data/flyer_dia_del_padre.png")
CFG Scale
4
Steps
30
Sampler
dpmpp_2m_sde_gpu
Seed
4244585766
Scheduler
karras
Image Size
832 X 1216
Model
Animagine XL V3.1
Generate
Size
832X1216
Date
Jun 16, 2024
Mode
Studio
Type
cell
Checkpoint & LoRA
Animagine XL V3.1
Checkpoint
Animagine XL V3.1
#Pixel
0 comment
0
0
0

SeaArt Swift AI Apps

ai_video_generationimg
AI Video Generation

Unleash your imagination and let AI create visual wonders for you

face_swap_titleimg
Face Swap Online Free

Create funny or realistic face swap videos & photos in a snap

anime2realityimg
Anime to Reality

Instantly bring your favorite anime characters to life.

dance_vidimg
AI Dance Video Generator

Play with this AI dance video generator, unleash your inner dancer instantly!

kiss_vidimg
AI Kissing Video Generator

Join the kissing trend with SeaArt's AI kissing video generator instantly. Easily make two people kiss, and create realistic animation.

image2lineartimg
Image to Line Art

Effortlessly convert any image into elegant line art

Explore More AI Apps 

Explore Related

ControlNet
logo
English
Application
Create Image AI Characters Swift AI Model Training Canvas AI Apps Workflow
About
Studio Rankings AI Chat AI Blog AI News
Help
Guides Customer Service
Get App
icon
Download on the
APP Store
icon
GET IT ON
Google Play
Follow Us
iconiconiconiconiconiconiconicon
© 2025 SeaArt, Inc.
Copyright Policy
Terms
Privacy 特定商取引法 資金決済法に基づく表示
More