banner_image ×
SeaArt AI Enterprise Version

A close up of a man wearing a blue tie and white shirt

# Re-create the image with a suit and convert it to a PDF
from PIL import Image, ImageDraw

# Load the original image again
image = Image.open(img_path)

# Define suit area and create a black suit shape
suit_shape = Image.new('RGB', (image.width, int(image.height / 2)), (0, 0, 0))

# Create white collar and red tie on the suit shape
draw = ImageDraw.Draw(suit_shape)
collar_width = int(image.width / 2)
collar_height = int(image.height / 10)
tie_width = int(image.width / 8)
tie_height = int(image.height / 3)

# Draw white collar
collar_start_x = int(image.width / 4)
collar_end_x = int(3 * image.width / 4)
collar_y = 0
draw.rectangle([collar_start_x, collar_y, collar_end_x, collar_height], fill=(255, 255, 255))

# Draw red tie
tie_start_x = int(image.width / 2 - tie_width / 2)
tie_end_x = int(image.width / 2 + tie_width / 2)
tie_start_y = collar_height
tie_end_y = tie_start_y + tie_height
draw.polygon([(tie_start_x, tie_start_y), (tie_end_x, tie_start_y), (image.width / 2, tie_end_y)], fill=(255, 0, 0))

# Combine the top half of the original image with the new suit shape
combined_image = Image.new('RGB', (image.width, image.height))
combined_image.paste(image.crop((0, 0, image.width, int(image.height / 2))), (0, 0))
combined_image.paste(suit_shape, (0, int(image.height / 2)))

# Save the image as a PDF
pdf_output_path = '/mnt/data/formal_profile_picture.pdf'
combined_image.save(pdf_output_path, "PDF", resolution=100.0)

pdf_output_path
chatIcon
Some things can only be said here. Ready for it?
Create AI Character
image
avatar
A
Adriano Monteiro Moraes
Prompts
Copy
# Re-create the image with a suit and convert it to a PDF from PIL import Image , ImageDraw # Load the original image again image = Image . open(img_path) # Define suit area and create a black suit shape suit_shape = Image . new('RGB' , (image . width , int(image . height / 2)) , (0 , 0 , 0)) # Create white collar and red tie on the suit shape draw = ImageDraw . Draw(suit_shape) collar_width = int(image . width / 2) collar_height = int(image . height / 10) tie_width = int(image . width / 8) tie_height = int(image . height / 3) # Draw white collar collar_start_x = int(image . width / 4) collar_end_x = int(3 * image . width / 4) collar_y = 0 draw . rectangle([collar_start_x , collar_y , collar_end_x , collar_height] , fill=(255 , 255 , 255)) # Draw red tie tie_start_x = int(image . width / 2 - tie_width / 2) tie_end_x = int(image . width / 2 + tie_width / 2) tie_start_y = collar_height tie_end_y = tie_start_y + tie_height draw . polygon([(tie_start_x , tie_start_y) , (tie_end_x , tie_start_y) , (image . width / 2 , tie_end_y)] , fill=(255 , 0 , 0)) # Combine the top half of the original image with the new suit shape combined_image = Image . new('RGB' , (image . width , image . height)) combined_image . paste(image . crop((0 , 0 , image . width , int(image . height / 2))) , (0 , 0)) combined_image . paste(suit_shape , (0 , int(image . height / 2))) # Save the image as a PDF pdf_output_path = '/mnt/data/formal_profile_picture . pdf' combined_image . save(pdf_output_path , "PDF" , resolution=100 . 0) pdf_output_path
INFO
Prompts
# Re-create the image with a suit and convert it to a PDF from PIL import Image, ImageDraw # Load the original image again image = Image.open(img_path) # Define suit area and create a black suit shape suit_shape = Image.new('RGB', (image.width, int(image.height / 2)), (0, 0, 0)) # Create white collar and red tie on the suit shape draw = ImageDraw.Draw(suit_shape) collar_width = int(image.width / 2) collar_height = int(image.height / 10) tie_width = int(image.width / 8) tie_height = int(image.height / 3) # Draw white collar collar_start_x = int(image.width / 4) collar_end_x = int(3 * image.width / 4) collar_y = 0 draw.rectangle([collar_start_x, collar_y, collar_end_x, collar_height], fill=(255, 255, 255)) # Draw red tie tie_start_x = int(image.width / 2 - tie_width / 2) tie_end_x = int(image.width / 2 + tie_width / 2) tie_start_y = collar_height tie_end_y = tie_start_y + tie_height draw.polygon([(tie_start_x, tie_start_y), (tie_end_x, tie_start_y), (image.width / 2, tie_end_y)], fill=(255, 0, 0)) # Combine the top half of the original image with the new suit shape combined_image = Image.new('RGB', (image.width, image.height)) combined_image.paste(image.crop((0, 0, image.width, int(image.height / 2))), (0, 0)) combined_image.paste(suit_shape, (0, int(image.height / 2))) # Save the image as a PDF pdf_output_path = '/mnt/data/formal_profile_picture.pdf' combined_image.save(pdf_output_path, "PDF", resolution=100.0) pdf_output_path
Negative Prompts
worst quality, low quality, bad anatomy, bad hands, bad body, missing fingers, extra digit, fewer digits
CFG Scale
7
Steps
30
Sampler
DPM++ 2M Karras
Seed
0
Clip Skip
1
Image Size
832 X 1216
Denoising Strength
0.2
Model
Juggernaut XL
Generate
Size
1392X2040
Date
Jun 3, 2024
Mode
SDXL
Type
upscale
Checkpoint & LoRA
Checkpoint
Juggernaut XL
#Cartoon
#Product Design
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

fuse_anyoneimg
AI Image Fusion

Combine two images into new one stunning visual with AI Image Fusion.

ai_tools_4img
AI Filters

Turns every photo into a work of art

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!

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