Adjust image opacity
You need to make hundreds of images semi-transparent for backgrounds, overlays, or watermarks.
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.
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.
pip install pixeltable
pxt.create_table()@pxt.udfinsert()add_computed_column()You need to make hundreds of images semi-transparent for backgrounds, overlays, or watermarks.
You need to apply filters to hundreds of images—blur, sharpen, edge detection, and other enhancements.
You need to fix inconsistent lighting across hundreds of images—adjusting brightness, contrast, and color saturation.
You need to resize, rotate, crop, or convert hundreds of images—and keep track of all the transformed versions.