Skip to main content

Overlay Image Title

This is a tool, imagetitle, to help overlay a small bit of text over an image.

This is especially useful to add some credits to images used in presentations for example.

Image with overlayed title at the bottom

imagetitle -i input.png --title="This is title text." -p "bottom"

Photo credits for the photo above goto İrfan Simsar [https://unsplash.com/@irfansimsar]

Usage

$ imagetitle [OPTIONS]

Options:

  • -i, --input PATH: Image file name. [default: input.png]
  • -o, --output PATH: Output file name. [default: output.png]
  • -p, --position [bottom|top|left|right]: Where to position the tile. [default: bottom]
  • -t, --title TEXT: Text for title.
  • -f, --font TEXT: Font name or path.
  • -r, --fraction FLOAT RANGE: What fraction, 0 to 1, of the image edge should be covered by the title? [default: 0.75]
  • --version
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Installation

There are a number of ways you could install this utility.

Python

If you are familiar with the installation of python packages in a virtual environment then you can install with:

pip install imagetitle

This will give you a command line application that you can use at the terminal.

Pipx

Another approach is to use a utility called Pipx to install the application.

pipx install imagetitle
or
pipx install git+https://github.com/rnwolf/overlay_image_title/

Docker

The utility is also packaged up in a Docker image.

If you have docker installed then you can pull down the application and python all in one image.

docker pull rnwolf/overlayimagetitle

To show application help docker run -t -i --rm -v ${PWD}:/app overlayimagetitle:latest

Show version docker run -t -i --rm -v ${PWD}:/app overlayimagetitle:latest --version

Given a file called input.png in current working dir then with this produce output.png in docker run -t -i --rm -v ${PWD}:/app overlayimagetitle:latest -i /app/input.png -f /fnt/Ubuntu-C.ttf

Open a bash shell inside of the docker container docker run -t -i --rm --entrypoint /bin/bash -v ${PWD}:/app overlayimagetitle:latest

Setup alias for Docker Image

When using docker to run command setup a command alias for imagetitle In your powershell profile add the following

function imagetitle {
  docker run -it --rm v ${pwd}:/app overlayimagetitle:latest $args
 }

Or if you use bash terminal then update .bashrc profilr by adding:

alias imagetitle='docker run -it --rm -v \`pwd\`:/app overlayimagetitle:latest'

Metadata

Release files for imagetitle 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imagetitle 0.0.1
File Size Uploaded Provenance Actions
imagetitle-0.0.1.tar.gz 5.2 kB Without provenance Details for imagetitle-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imagetitle 0.0.1
File Interpreter ABI Platform Actions
imagetitle-0.0.1-py3-none-any.whl Python 3 none any Details for imagetitle-0.0.1-py3-none-any.whl

Total release size: 10.3 kB

Release files / imagetitle-0.0.1.tar.gz

Download URL imagetitle-0.0.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c9c620e2ef3bd5d9dc926940906c77ba2181d0ef5d6e96dd0bbdb79f6a6910b8
BLAKE2b-256 checksum
How to use checksums
d06f15c0a1791c468779d45c4c05dd9848722b4d506a645502a03aaadfaeadde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.2 Linux/4.19.104-microsoft-standard

Release files / imagetitle-0.0.1-py3-none-any.whl

Download URL imagetitle-0.0.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfdea7416e072462fd812bfa3d09e18256de6e37292479455697139f223aca7b
BLAKE2b-256 checksum
How to use checksums
8418e8ef86999f1fd1ae30b142068ea719d05e57c9aab1052b2c983e94821315
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.2 Linux/4.19.104-microsoft-standard

Security for imagetitle 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page