What problem does it solve?
Local vision models often require input images in a standard RGB PNG format with fixed dimensions. This skill ensures any input image is converted to a consistent 896×896 RGB PNG, removing alpha channels, converting color spaces as needed, and filling transparent areas with a solid background so the model receives a predictable input.
Core Features & Use Cases
- Normalize input images to an RGB PNG with a fixed square size (default 896×896), removing alpha channels and converting color spaces as needed.
- Adjustable background and size: support white or dark backgrounds and sizes of 896, 512, or 1024 pixels for different detail requirements.
- Accept both file paths and base64 data inputs; returns a base64-encoded PNG plus a confirmation message for downstream agents.
- Designed for local vision models (e.g., Ollama, LLaVA, Qwen3-VL) to prevent format-related errors during inference.
Quick Start
Call preprocess_image with a local image path (or base64 data) to obtain a normalized 896×896 RGB PNG suitable for local vision models.