File size: 345 Bytes
8e15f80
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from PIL import Image, ImageDraw

def generate_comic_panel(prompt, output_path):
    """Creates a simple placeholder image for the comic panel."""
    img = Image.new("RGB", (500, 500), color=(255, 255, 255))
    draw = ImageDraw.Draw(img)
    draw.text((20, 250), prompt, fill=(0, 0, 0))
    img.save(output_path)
    return output_path