PNG图像平滑描边与填充处理 - Process PNG images with white fill and smooth black stroke.
Uses OpenCV and NumPy to expand canvas, add white fill, and apply smooth black strokes for PNG images with transparency.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Read images with Alpha channel
- Expand image canvas size
- Generate foreground content mask
- Fill white based on outline
- Draw smooth black stroke
- Protect original image content
Inputs
- PNG image with Alpha channel
- Canvas expansion pixel parameter
- White fill width parameter
- Black stroke width parameter
Outputs
- Processed PNG image with fill and stroke
Requirements
- Python runtime environment
- OpenCV library
- NumPy library
