reverie89/python-watermark

By reverie89

Updated over 3 years ago

Watermark images with Python via Docker

Image
0

170

reverie89/python-watermark repository overview

https://github.com/reverie89/docker-python-watermark

docker-python-watermark

Watermark images with Python via Docker

Text appears at a 45 degrees angle overlayed on an image


To use app:

  1. Pull Docker image here OR build from Dockerfile from GitHub repo
  2. Put image files (.png or .jpg or .webp) into input directory
  3. Put font file (.ttf) into input directory
  4. Edit .env as applicable for the text, font, color (R, G, B, Alpha), output extension, optimize output
  5. Run the following:
docker run
--rm
--env-file .env
-v ./input:/input
-v ./output:/output
reverie89/python-watermark
  1. Find the watermarked images in output directory

Docker container was built with Python 3.11 and uses the Pillow ~=9.0 package

Tag summary

Content type

Image

Digest

sha256:8969c7f88

Size

53.3 MB

Last updated

over 3 years ago

docker pull reverie89/python-watermark:3.11