Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WordImg-1.0.1.tar.gz (69.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WordImg-1.0.1-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

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

Hashes for WordImg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8176b59bccacea4d786f297088c72ef94a8718788d1cb41a07f43def3609bc38
MD5 11056f0c862bc2e3f3417f7253dc7264
BLAKE2b-256 57b266670ae3629a9483a73c1d28b704df1cb7707961546344212b4d361432cd

See more details on using hashes here.

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

Hashes for WordImg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59f4b9c8784411a192e9b0eed3b003bc98926079dcf99dea0d4aaa1509d9e475
MD5 2b520f13a60987698654892717a5c971
BLAKE2b-256 5bb6a3dc4186a0caf0f39e5fb1b39ebef19a48354bb86493e5d208d33ae86b2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page