From PIL import Image, ImageDraw # Load the uploaded image image


from PIL import Image, ImageDraw # Load the uploaded image image_path = "/mnt/data/IMG-20240708-WA0056.jpg" image = Image.open(image_path) # Create a new image with the same size and a white background new_image = Image.new("RGB", image.size, "white") draw = ImageDraw.Draw(new_image) # Define the colors line_color = "black" # Draw the original image on the new one new_image.paste(image, (0, 0)) # Draw the outlines with the new colors (not possible without vector data) # Save the new image output_path = "/mnt/data/redesigned_logo.jpg" new_image.save(output_path) output_path
Prompts
Copier les Paramètres
from PIL import Image
,
ImageDraw
# Load the uploaded image
image_path = "/mnt/data/IMG-20240708-WA0056
.
jpg"
image = Image
.
open(image_path)
# Create a new image with the same size and a white background
new_image = Image
.
new("RGB"
,
image
.
size
,
"white")
draw = ImageDraw
.
Draw(new_image)
# Define the colors
line_color = "black"
# Draw the original image on the new one
new_image
.
paste(image
,
(0
,
0))
# Draw the outlines with the new colors (not possible without vector data)
# Save the new image
output_path = "/mnt/data/redesigned_logo
.
jpg"
new_image
.
save(output_path)
output_path
Info
Checkpoint & LoRA

Checkpoint
CyberRealistic
#Paysage
#Réaliste
#Photographie
#Conception de scène
0 commentaire(s)
0
0
0