smart-image-slicer

Detect and separate multiple objects in an image into transparent PNG sprites.

Updated May 3, 2026
One-click install
npx skills add https://github.com/wanyusheng63-alt/vocab-learn --skill smart-image-slicer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-image-slicer
Source: https://github.com/wanyusheng63-alt/vocab-learn/tree/main/.codebuddy/skills/smart-image-slicer
Command: npx skills add https://github.com/wanyusheng63-alt/vocab-learn --skill smart-image-slicer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires opencv-python, numpy, Pillow, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Automatically detect and separate multiple objects in a single image to produce individual sprites with transparent backgrounds.

Core Features & Use Cases

  • Intelligent Object Detection uses contour-based segmentation to identify distinct objects in an image.
  • Smart Background Removal analyzes local background colors and outputs PNGs with transparent backgrounds.
  • Configurable Processing offers min_area, tolerance, and bg_threshold with presets for common use cases.

Quick Start

Provide a sprite sheet image and request the tool to automatically split it into individual sprites with transparent backgrounds.

Frequently Asked Questions about smart-image-slicer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically slice a sprite sheet into individual PNGs with transparent backgrounds?

Automatically slice a sprite sheet by using contour-based segmentation to detect multiple objects, isolating them, and removing the background to output individual transparent PNG sprites.

What is the best way to separate multiple objects in a single image for animation frames?

Separating multiple objects in a single image is best handled by contour-based segmentation, which detects distinct elements and exports them as isolated sprites with transparent backgrounds for animation frames.

Can I configure the object detection sensitivity when slicing images with OpenCV?

Yes, you can configure object detection sensitivity using min_area, tolerance, and bg_threshold parameters, which include presets for common sprite sheet and hand-drawn asset use cases.

Does this background removal method work for hand-drawn assets and UI elements?

Background removal works effectively for hand-drawn assets and UI elements by analyzing local background colors and applying contour-based segmentation to produce clean, isolated sprites.

Why does contour-based segmentation sometimes miss small objects in a sprite sheet?

Contour-based segmentation may miss small objects if their area falls below the configured min_area threshold, filtering them out as noise rather than recognizing them as valid sprites.

Do I need Python and OpenCV to automatically split an image into sprites?

You need Python with OpenCV, NumPy, and Pillow dependencies to run the automated image processing, detect objects via contours, and output transparent PNG sprites.