Apply image filters
You need to apply filters to hundreds of images—blur, sharpen, edge detection, and other enhancements.
You need to make hundreds of images semi-transparent for backgrounds, overlays, or watermarks.
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 adjust image transparency using a custom UDF that modifies alpha channels (relies on PIL/Pillow). This gives you precise control over transparency levels.
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 the opacity adjustment to all images in your table.
pip install pixeltable
pxt.create_table()@pxt.udfinsert()add_computed_column()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.
You need to convert color images to grayscale for analysis, preprocessing, or model inputs that require single-channel images.