Skip to main content

Adds a title and logo to an image using The Renegade Coder Featured Image style

Project description

Image Titler

Join the chat at https://gitter.im/TheRenegadeCoder/image-titler

Adds a title to an image using The Renegade Coder Featured Image style. The style can be defined as the following:

Titles are split in half by the closest space and displayed using two solid red bars with a white text overlay on the upper right portion of the image. In addition, logos can be added which will affect the bar color.

For example:

23 Tech Topics to Tackle

To see more examples, check out our list of samples.

How to Run

The following code snippet demonstrates a few ways you might use the script:

pip install image-titler # Installs the script

image_titler # Runs as default
image_titler --title "Hello, World!"  # Adds a custom title
image_titler --output_path "path/to/output"  # Sets the output path
image_titler --path "path/to/image"  # Sets the image path
image_titler --tier "free"  # Sets the membership tier which changes the rectangle borders
image_titler --logo_path "path/to/logo"  # Adds a 145x145 logo to the lower left corner of the image
image_titler --batch # Runs the program in batch mode on a directory

Default Behavior

Currently, the image-titler script makes a few assumptions about the images it processes automatically:

  • The size of an image is assumed to be 1920x960. Otherwise, this tool will automatically crop the image to size.
  • This tool scrapes file names for image titles. To do this, it assumes file names are written in kebab-case where each word is separated by a hyphen. Then, words are extracted and title cased before being printed on the image.
  • The color of the title bars defaults to The Renegade Coder Red (201, 2, 41, 255). If you'd like a different color, the script automatically extracts the most dominant color from logos. At this time, there is no way to customize bar color.
  • Added elements have fixed position. Logos will always appear in the bottom left. Titles will always appear in the top right.

There are likely other default behaviors not documented here. Feel free to experiment with the tool and share any issues you find.

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

image-titler-1.8.2.tar.gz (54.6 kB view details)

Uploaded Source

File details

Details for the file image-titler-1.8.2.tar.gz.

File metadata

  • Download URL: image-titler-1.8.2.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

File hashes

Hashes for image-titler-1.8.2.tar.gz
Algorithm Hash digest
SHA256 bdab9b1ad2ac3e7cf573b5314323854ca384bda7a03eedd977f75837e970d830
MD5 4cb5295d29468e12e13cda8483bf1abf
BLAKE2b-256 e385e0c01930e57c9ab66c2f95b531f7e906881a43d73372b2df90cef7235bd4

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