meitu-product-swap

Replace products in ecommerce images while preserving geometry and background integrity.

28|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/meitu/meitu-skills --skill meitu-product-swap
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: meitu-product-swap
Source: https://github.com/meitu/meitu-skills/tree/main/skills/meitu-product-swap
Command: npx skills add https://github.com/meitu/meitu-skills --skill meitu-product-swap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables automated, intelligent replacement of products in ecommerce images, supporting one-to-one, one-to-many, and many-to-one mappings, triggered when users mention product replacement, swap, or replacement of main subject.

Core Features & Use Cases

  • Map and execute one-to-one, one-to-many, and many-to-one product substitutions across background scenes while preserving the replaced product's geometry and the background's integrity.
  • Prompts are assembled from templates and respect credentials, workspace constraints, and deterministic execution via meitu-cli.
  • Use cases include catalog refresh, marketing visuals, and retouching workflows where a product must be swapped into a scene with precise perspective, lighting, and anti-mutation constraints.

Quick Start

Install the Meitu CLI, configure credentials, and run a sample product-swap workflow with a source product image and a target background image.

Frequently Asked Questions about meitu-product-swap

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

FAQPage Schema
How do I swap products in ecommerce images while preserving the original background?▼

To swap products in ecommerce images while preserving the background, you can use an automated product replacement pipeline that anchors a source product onto a target background. This enforces strict geometry preservation and background integrity during visual compositing.

Can I replace multiple products in a single scene using one source image?▼

Yes, you can replace multiple products in a single scene using one source image. The product replacement workflow supports one-to-one, one-to-many, and many-to-one mappings across different background scenes without mutating the original product features.

What's the best way to automate catalog refresh for marketing visuals?▼

The best way to automate catalog refresh for marketing visuals is using a deterministic product swap pipeline. It assembles prompts from templates and brand constraints, applying anti-mutation checks to ensure precise perspective and lighting across retouching workflows.

Do I need Meitu OpenAPI credentials to perform automated image editing?▼

Yes, you need Meitu OpenAPI credentials to perform automated image editing. The visual compositing pipeline requires credential configuration and the Meitu CLI to execute deterministic product replacement workflows and quality self-checks.

Why does product replacement distort my item's geometry during visual compositing?▼

Product replacement distorts item geometry when strict preservation constraints are missing. Using a pipeline with multi-stage prompt construction and quality self-check enforces anti-mutation rules, ensuring the replaced product retains its original geometry and perspective.

When do I need intelligent product substitution for my image editing workflow?▼

You need intelligent product substitution for image editing workflows when replacing a main subject in ecommerce imagery. It is essential for catalog refresh and marketing visuals where a product must be swapped into a scene with precise lighting and anti-mutation constraints.