Add watermarks to images

You need to add watermarks to hundreds of different images to protect copyright, add branding, or mark drafts.

Images · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

How it works

You add watermarks to images using a custom UDF that wraps Pillow's ImageDraw (relies on PIL/Pillow). This gives you full control over watermark placement, font, transparency, and color.

You can iterate on transformations before adding them to your table. Use .select() with .collect() to preview results on sample images—nothing is stored in your table. If you want to collect only the first few rows, use .head(n) instead of .collect(). Once you're satisfied, use .add_computed_column() to apply watermarks to all images in your table.

What it covers

  • Create simple text watermarks
  • Test transformations before applying
  • Apply to multiple images automatically

What it uses

Install
terminal
pip install pixeltable
Pixeltable calls
pxt.create_table()@pxt.udfinsert()add_computed_column()
Browse all 103