Skip to content

KvaytG/caption-forge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caption-forge

US English | RU Русский

Python 3.10 PolyForm License Sponsor

Automatically overlay perfectly fitted text on image.

📚 Usage

from caption_forge import generate_caption_image
from PIL import Image

# Load image
image = Image.open("image.jpg")

# Generate text with default settings
result = generate_caption_image(
    pil_image=image,
    text="Example Text",
    font_path="example-font.ttf"
)
result.save("output.jpg")

📥 Installation

pip install git+https://github.com/KvaytG/caption-forge.git

📝 License

Licensed under the PolyForm Noncommercial license.

This project uses open-source components. For license details see pyproject.toml and dependencies' official websites.