Pillow-based utilities for deterministic pixel-level image operations. Use for resize, crop, composite, format conversion, watermarks, and other standard image processing tasks.
| Loading | load(source) | Load from URL, path, bytes, or base64 | | | loadfromurl(url) | Download image from URL | | Saving | save(image, path) | Save with format auto-detection | | | tobytes(image, format) | Convert to bytes | | | tobase64(image, format) | Convert to base64 string | | Resizing | resize(image, width, height) | Resize to exact dimensions |
| | scale(image, factor) | Scale by factor (0.5 = half) | | | thumbnail(image, size) | Fit within size, maintain aspect | | Cropping | crop(image, left, top, right, bottom) | Crop to region | | | cropcenter(image, width, height) | Crop from center | | | croptoaspect(image, ratio) | Crop to aspect ratio |