ComicCrafterAI / image_generator.py
PerumalHema's picture
Upload 3 files
8e15f80 verified
raw
history blame contribute delete
345 Bytes
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