A library to generate text images with custom backgrounds.
Project description
WordImg
WordImg is a Python library that generates images with custom text over a user-provided background. The background is automatically resized to 2560x1440, and text is centered for a professional look.
Features
✅ Resize background to 2560x1440 ✅ Custom text positioning ✅ Built-in font (no external dependency) ✅ Auto-save images to saved_images/ ✅ Simple and lightweight
Installation
Install WordImg using:
pip install WordImg
Usage
from wordimg import WordImg
wordimg = WordImg()
image_path = wordimg.make_image("background.jpg", "Delta", "@wtfdelta")
print(f"Image saved at: {image_path}")
Example Output
If you provide "background.jpg" and "Hello World", the generated image will have:
Resized background (2560x1440)
Centered text: "Hello World"
Username in the top-left corner
Project Links
Website: deltaop.tech
GitHub: github.com/geektyper
Telegram: wtf_daddie.t.me
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file WordImg-1.0.1.tar.gz.
File metadata
- Download URL: WordImg-1.0.1.tar.gz
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8176b59bccacea4d786f297088c72ef94a8718788d1cb41a07f43def3609bc38
|
|
| MD5 |
11056f0c862bc2e3f3417f7253dc7264
|
|
| BLAKE2b-256 |
57b266670ae3629a9483a73c1d28b704df1cb7707961546344212b4d361432cd
|
File details
Details for the file WordImg-1.0.1-py3-none-any.whl.
File metadata
- Download URL: WordImg-1.0.1-py3-none-any.whl
- Upload date:
- Size: 69.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f4b9c8784411a192e9b0eed3b003bc98926079dcf99dea0d4aaa1509d9e475
|
|
| MD5 |
2b520f13a60987698654892717a5c971
|
|
| BLAKE2b-256 |
5bb6a3dc4186a0caf0f39e5fb1b39ebef19a48354bb86493e5d208d33ae86b2b
|