banner_image ×
SeaArt AI Enterprise Version

A screenshot of a computer screen with a mountain scene in the background

from PIL import Image, ImageDraw, ImageFont

# Define the dimensions of the image
width = 600
height = 800

# Define the background color of the image
background_color = (255, 255, 255)

# Define the font size and font family
font_size = 40
font_family = "arial.ttf"

# Define the text to be displayed on the image
text = "Aviso Legal"

# Define the color of the text
text_color = (0, 0, 0)

# Create a new image with the specified dimensions and background color
image = Image.new("RGB", (width, height), background_color)

# Create a new drawing object for the image
draw = ImageDraw.Draw(image)

# Load the font
font = ImageFont.truetype(font_family, font_size)

# Calculate the size of the text
text_width, text_height = draw.textsize(text, font=font)

# Calculate the position of the text
x = (width - text_width) / 2
y = (height - text_height) / 2

# Draw the text on the image
draw.text((x, y), text, fill=text_color, font=font)

# Save the image to a file
image.save("aviso_legal.png")
chatIcon
I've got something exciting, perfect for our chat.
Create AI Character
image
avatar
D
darlan jackson
Generation Data
Records
Prompts
Copy
from PIL import Image , ImageDraw , ImageFont # Define the dimensions of the image width = 600 height = 800 # Define the background color of the image background_color = (255 , 255 , 255) # Define the font size and font family font_size = 40 font_family = "arial . ttf" # Define the text to be displayed on the image text = "Aviso Legal" # Define the color of the text text_color = (0 , 0 , 0) # Create a new image with the specified dimensions and background color image = Image . new("RGB" , (width , height) , background_color) # Create a new drawing object for the image draw = ImageDraw . Draw(image) # Load the font font = ImageFont . truetype(font_family , font_size) # Calculate the size of the text text_width , text_height = draw . textsize(text , font=font) # Calculate the position of the text x = (width - text_width) / 2 y = (height - text_height) / 2 # Draw the text on the image draw . text((x , y) , text , fill=text_color , font=font) # Save the image to a file image . save("aviso_legal . png")
INFO
Prompts
from PIL import Image, ImageDraw, ImageFont # Define the dimensions of the image width = 600 height = 800 # Define the background color of the image background_color = (255, 255, 255) # Define the font size and font family font_size = 40 font_family = "arial.ttf" # Define the text to be displayed on the image text = "Aviso Legal" # Define the color of the text text_color = (0, 0, 0) # Create a new image with the specified dimensions and background color image = Image.new("RGB", (width, height), background_color) # Create a new drawing object for the image draw = ImageDraw.Draw(image) # Load the font font = ImageFont.truetype(font_family, font_size) # Calculate the size of the text text_width, text_height = draw.textsize(text, font=font) # Calculate the position of the text x = (width - text_width) / 2 y = (height - text_height) / 2 # Draw the text on the image draw.text((x, y), text, fill=text_color, font=font) # Save the image to a file image.save("aviso_legal.png")
CFG Scale
Steps
0
Sampler
Seed
0
Scheduler
Image Size
1344 X 768
Model
Generate
Size
1344X768
Date
Nov 2, 2023
Mode
Studio
Type
upscale
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

dance_vidimg
AI Dance Video Generator

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

ghibli_filter_h1img
Studio Ghibli Filter

Transform any photo into unique Ghibli-style art in just one click.

wanimg2vid_h1img
Wan 2.1 Image to Video

Animate photos with realistic motion and cinematic effects.

cartoon_avatar_h1img
Cartoon Avatar Maker

Turn your photos into unique cartoon avatars instantly.

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