px-asset-extract

Decomposes images into transparent PNG assets with a JSON manifest via CLI or Python API.

7|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/JadeLiu-tech/px-asset-extract --skill px-asset-extract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: px-asset-extract
Source: https://github.com/JadeLiu-tech/px-asset-extract/tree/main
Command: npx skills add https://github.com/JadeLiu-tech/px-asset-extract --skill px-asset-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Decomposes images into individual transparent PNG assets with a JSON manifest, enabling automated extraction of components like text blocks, icons, illustrations, diagrams, and lines from slides, posters, infographics, and diagrams.

Core Features & Use Cases

  • Full extraction pipeline: segment, classify, filter by type (--types/--exclude-types), and crop assets with anti-aliased alpha edges.
  • Flexible regions support: extract from pre-computed bounding boxes (--regions) to bridge with grounding models, and generate a manifest for downstream processing.
  • Programmable and scriptable: provides a CLI (px-extract) and Python API for batch processing, visualization, and JSON outputs.

Quick Start

Run px-extract on an image to extract all assets and generate a manifest.

Frequently Asked Questions about px-asset-extract

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

FAQPage Schema
How do I extract individual assets from a poster or infographic into transparent PNGs?

To extract individual assets into transparent PNGs, you can use an automated pipeline that segments images, classifies components like text blocks and icons, and crops them with anti-aliased alpha edges. This process also generates a JSON manifest for downstream processing.

Can I crop image components using pre-computed bounding boxes?

Yes, you can crop image components using pre-computed bounding boxes by passing region coordinates to the extraction pipeline. This allows you to bridge with grounding models and selectively extract assets from specific areas of slides or diagrams.

How do I filter extracted image assets by type during segmentation?

You can filter extracted image assets by type during segmentation using command-line flags like --types and --exclude-types. This allows you to specify which classes of components to include or exclude from the final transparent PNG outputs and JSON manifest.

Does Python computer vision image segmentation work for batch processing diagrams?

Yes, Python computer vision image segmentation works for batch processing diagrams through a provided CLI and Python API. It supports CPU-based segmentation and classification to decompose multiple diagrams into individual transparent assets.

What is the best way to automate decomposing slides into individual assets?

The best way to automate decomposing slides into individual assets is using a programmatic extraction pipeline that handles segmentation, classification, and cropping. It outputs per-asset transparent PNGs alongside a JSON manifest for tracking.

Why do I need a JSON manifest when extracting image components?

You need a JSON manifest when extracting image components because it records the classification and metadata for each cropped transparent PNG. This output enables downstream processing, visualization generation, and programmatic tracking of the extracted assets.