pmg-image-decomposer
Installation
SKILL.md
PMG Image Decomposer
pmg-image-decomposer converts flat images into structured, reusable collections of independent visual objects consumable by the canonical PMG engine.
Integrated via pmg.image_decomposer.ImageDecomposer and pmg.layers.LayerTree.
Core Decomposition Modes
-
Mode 1 — Semantic Decomposition:
- Isolates meaningful brand/visual elements (e.g., Agribank green background, red diagonal bands, white separators, wheat stem and grains).
- Classifies editability:
native_vector(OpenXML<a:custGeom>freeform polygons) vs.raster_layer(transparent PNG). - Generates hierarchical grouping (
wheat_group->Grain_01..N).
-
Mode 2 — Geometric Slicing:
- Partitions images into geometric segments for shutter, mosaic, tile, and carousel reveals.
- Patterns:
vertical,horizontal,grid,tiles,puzzle,radial/circular_sectors,triangles,custompolygons. - Guarantees complete pixel coverage without dropped content.