banner_image ×
SeaArt AI Enterprise Version

From PIL import Image, ImageDraw, ImageFont # Dimensions de l

from PIL import Image, ImageDraw, ImageFont

# Dimensions de l'image
width, height = 600, 800
background_color = (255, 255, 255)

# Création de l'image
image = Image.new('RGB', (width, height), background_color)
draw = ImageDraw.Draw(image)

# Chargement de la police
font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
font = ImageFont.truetype(font_path, 20)
title_font = ImageFont.truetype(font_path, 30)

# Coordonnées de départ
x, y = 30, 30
line_height = 40

# Titre de la carte d'identité
title_text = "🆔 Carte d'Identité RP"
draw.text((x, y), title_text, fill="black", font=title_font)
y += line_height + 10

# Données de la fiche RP
data = [
    "Nom :", "Prénom :", "Surnom :", "Âge :", "Date de naissance :", "Lieu de naissance :",
    "Sexe :", "Nationalité :", "Profession :", "Adresse :", "Numéro de téléphone :",
    "Adresse e-mail :", "Description physique :", "- Taille :", "- Poids :",
    "- Couleur des yeux :", "- Couleur des cheveux :", "- Signes distinctifs :",
    "Personnalité :", "(Décrivez brièvement le caractère)", "Historique :",
    "(Racontez brièvement son histoire)", "Compétences :", "(Listez les compétences)",
    "Objets importants :", "(Listez les objets)", "Image du personnage :", 
    "(Lien vers une image ou attacher l'image)"
]

# Dessin du texte sur l'image
for line in data:
    draw.text((x, y), line, fill="black", font=font)
    y += line_height if line[0] != '(' else line_height - 10

# Sauvegarde de l'image
image_path = "/mnt/data/carte_identite_rp.png"
image.save(image_path)

image_path
chatIcon
I've got something exciting, perfect for our chat.
Create AI Character
image
avatar
L
Lunaya Musushi
Generation Data
Records
Prompts
Copy
from PIL import Image , ImageDraw , ImageFont # Dimensions de l'image width , height = 600 , 800 background_color = (255 , 255 , 255) # Création de l'image image = Image . new('RGB' , (width , height) , background_color) draw = ImageDraw . Draw(image) # Chargement de la police font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold . ttf" font = ImageFont . truetype(font_path , 20) title_font = ImageFont . truetype(font_path , 30) # Coordonnées de départ x , y = 30 , 30 line_height = 40 # Titre de la carte d'identité title_text = "🆔 Carte d'Identité RP" draw . text((x , y) , title_text , fill="black" , font=title_font) y += line_height + 10 # Données de la fiche RP data = [ "Nom :" , "Prénom :" , "Surnom :" , "Âge :" , "Date de naissance :" , "Lieu de naissance :" , "Sexe :" , "Nationalité :" , "Profession :" , "Adresse :" , "Numéro de téléphone :" , "Adresse e-mail :" , "Description physique :" , "- Taille :" , "- Poids :" , "- Couleur des yeux :" , "- Couleur des cheveux :" , "- Signes distinctifs :" , "Personnalité :" , "(Décrivez brièvement le caractère)" , "Historique :" , "(Racontez brièvement son histoire)" , "Compétences :" , "(Listez les compétences)" , "Objets importants :" , "(Listez les objets)" , "Image du personnage :" , "(Lien vers une image ou attacher l'image)" ] # Dessin du texte sur l'image for line in data: draw . text((x , y) , line , fill="black" , font=font) y += line_height if line[0] ! = '(' else line_height - 10 # Sauvegarde de l'image image_path = "/mnt/data/carte_identite_rp . png" image . save(image_path) image_path
INFO
Prompts
from PIL import Image, ImageDraw, ImageFont # Dimensions de l'image width, height = 600, 800 background_color = (255, 255, 255) # Création de l'image image = Image.new('RGB', (width, height), background_color) draw = ImageDraw.Draw(image) # Chargement de la police font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf" font = ImageFont.truetype(font_path, 20) title_font = ImageFont.truetype(font_path, 30) # Coordonnées de départ x, y = 30, 30 line_height = 40 # Titre de la carte d'identité title_text = "🆔 Carte d'Identité RP" draw.text((x, y), title_text, fill="black", font=title_font) y += line_height + 10 # Données de la fiche RP data = [ "Nom :", "Prénom :", "Surnom :", "Âge :", "Date de naissance :", "Lieu de naissance :", "Sexe :", "Nationalité :", "Profession :", "Adresse :", "Numéro de téléphone :", "Adresse e-mail :", "Description physique :", "- Taille :", "- Poids :", "- Couleur des yeux :", "- Couleur des cheveux :", "- Signes distinctifs :", "Personnalité :", "(Décrivez brièvement le caractère)", "Historique :", "(Racontez brièvement son histoire)", "Compétences :", "(Listez les compétences)", "Objets importants :", "(Listez les objets)", "Image du personnage :", "(Lien vers une image ou attacher l'image)" ] # Dessin du texte sur l'image for line in data: draw.text((x, y), line, fill="black", font=font) y += line_height if line[0] != '(' else line_height - 10 # Sauvegarde de l'image image_path = "/mnt/data/carte_identite_rp.png" image.save(image_path) image_path
Negative Prompts
verybadimagenegative_v1.3, ng_deepnegative_v1_75t, (ugly face:0.8),cross-eyed,sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, bad anatomy, DeepNegative, facing away, tilted head, {Multiple people}, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worstquality, low quality, normal quality, jpegartifacts, signature, watermark, username, blurry, bad feet, cropped, poorly drawn hands, poorly drawn face, mutation, deformed, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, extra fingers, fewer digits, extra limbs, extra arms,extra legs, malformed limbs, fused fingers, too many fingers, long neck, cross-eyed,mutated hands, polar lowres, bad body, bad proportions, gross proportions, text, error, missing fingers, missing arms, missing legs, extra digit, extra arms, extra leg, extra foot, ((repeating hair))
CFG Scale
7
Steps
20
Sampler
DPM++ 2M Karras
Seed
1622414100
Clip Skip
1
Image Size
683 X 1024
Model
majicMIX sombre 麦橘唯美
Generate
Size
1144X2040
Date
Jul 20, 2024
Mode
Default
Type
upscale
Checkpoint & LoRA
Checkpoint
majicMIX sombre 麦橘唯美
#Realistic
#Photography
#Asian Babe
#Clothing
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

gender_swapimg
Gender Swap

Swap genders in photos and videos with SeaArt's AI gender swapper. Enjoy fun and realistic transformations effortlessly, free online!

ai_eraserimg
AI Eraser

Easily remove unwanted objects, watermarks, or people from your photos.

video_face_swapimg
Video Face Swap

Create funny videos by swapping faces in any video clip.

ghibli_filter_h1img
Studio Ghibli Filter

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

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