Where Pillow shines
Pillow, the maintained fork of PIL, is the imaging library most Python developers reach for first. It's MIT-CMU licensed, easy to install, and ideal for opening, converting, resizing, and saving images, generating thumbnails in web apps, and handing pixels to NumPy.
Do it with BrushCue
BrushCue complements Pillow when you need more than basic processing: GPU-accelerated effects, color-managed blending, and hundreds of ready-made looks. Here's the same grayscale-and-sharpen in both:
Pillow
from PIL import Image, ImageFilter, ImageOps
image = Image.open("photo.jpg")
edited = ImageOps.grayscale(image).filter(ImageFilter.UnsharpMask(radius=2, percent=150))
edited.save("photo-edited.png")BrushCue (Python)
import brushcue as bc
ctx = bc.Context()
image = bc.Composition.load("photo.jpg")
# Grayscale, then sharpen
edited = image.grayscale().sharpen(2.0, 1.5)
result = edited.execute(ctx)
with open("photo-edited.png", "wb") as f:
f.write(result.to_image_bytes(ctx))Pillow is a lighter dependency for edits like this, and its API is familiar to most Python developers. Reach for BrushCue when you want effects Pillow doesn't ship, like tilt-shift, halftone, or decade filters.
BrushCue Script (bcue)
image = Composition::from_path("photo.jpg")
edited = image.grayscale().sharpen(2.0, 1.5)
Bytes::save_to_path(Image::to_bytes(Composition::render_to_image(edited)), "photo-edited.png")
Custom shaders and animation
BrushCue goes beyond fixed filters. You can write your own per-pixel effect as a WGSL shader, and it runs on the GPU like any built-in effect:
import brushcue as bc
ctx = bc.Context()
image = bc.Composition.load("photo.jpg")
# A custom WGSL shader that runs on the GPU for every pixel
warm = image.color_transformer_shader(
"return vec4<f32>(input.r * 1.08, input.g, input.b * 0.9, input.a);",
"",
bc.ColorRepresentation.srgb(),
bc.ColorRepresentation.srgb(),
bc.Dictionary.create(),
)
result = warm.execute(ctx)
with open("photo-warm.png", "wb") as f:
f.write(result.to_image_bytes(ctx))BrushCue also animates: effects can change over time and render to MP4, which is how the animation tools, like the Glitch Animation, are built. Pillow can save animated GIFs and WebPs from frames you generate yourself, while BrushCue describes the animation and renders every frame for you.



