# Photo-Character Composite (2D Anime × Real-World Photo)

> Physically grounded compositing skill that blends 2D anime/indie character artwork seamlessly into real-world photographs—preserving original linework while matching ambient lighting, contact & cast shadows, and foreground occlusion.

Photo-Character Composite (2D Anime × Real-World Photo) is a free AI agent skill on Agensi by CODETHREADS_lab, in Image & Video. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [CODETHREADS_lab](https://www.agensi.io/creators/machida-no)
- Category: [Image & Video](https://www.agensi.io/skills/image-video)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/photo-character-composite-2d-anime-real-world-photo
- Tags: ui-ux, image, photo-compositing-2d-art, image-editing, character-design

## About this skill

Blend finished 2D character illustrations seamlessly into real-world photographs without redrawing or distorting the original art style.

### What this skill does
- **Linework & pixel preservation**: Keeps the original character artwork's exact eye/mouth lines, fine hair tips, and color palette intact.
- **Scale & perspective grounding**: Aligns foot contact points, eye-level, and horizon line to the real-world photo before compositing.
- **Ambient lighting & rim-light matching**: Matches character exposure and color temperature to unlit surrounding walls/surfaces (not blown-out light sources), with directional rim lighting.
- **Two-layer shadows & occlusion**: Generates tight contact shadows at weight-bearing points plus directional cast shadows matching scene light, and restores foreground occluders (railings, poles, benches).
- **Bundled Python compositing script**: Includes `scripts/composite.py` (Pillow/NumPy) and detailed finishing guidelines (`references/finishing.md`) for premultiplied scaling, matte cleanup, and lens-matched micro-blur/grain.

*(Note: `SKILL.md` and reference notes are written in Japanese; modern LLMs/agents execute them natively in any language.)*

## Known limitations

Cannot synthesize missing limbs or angles not present in the source art. Requires manual confirmation if character pose and background perspective are fundamentally incompatible.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Photo-Character Composite (2D Anime × Real-World Photo) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What files do I need to provide to start a composite project?

You need to provide a photographic background and the character artwork. This can be a transparent PNG, a character with an existing background that needs masking, or a rough layout showing your desired placement.

### How does this ensure my character's design doesn't change during the process?

Unlike standard AI generation which often reinterprets or changes character details, this skill focuses on pixel preservation. It protects the original line widths, facial expressions, and design details while only modifying how lighting and shadows interact with the assets.

### How does the skill fix the pasted-on look common in manual edits?

The skill uses a specialized composite script and finishing procedures to align perspective, map environment lighting, and generate accurate contact shadows. It even restores foreground elements like pillars or railings to sit in front of the character for a realistic sense of depth.

### What kind of final file will I receive?

The skill delivers a finished image, typically in PNG format, that matches the resolution of your background photo. The final output is checked at full scale to ensure details like eye lines, hair edges, and texture grain are perfectly blended.

### Are there any types of images the skill cannot process?

This skill cannot fix original character artwork that is missing necessary limbs or is drawn at an angle that does not match the requested composition. It is designed to work with the pixels provided rather than inventing entirely new poses or anatomy.

### How do I instruct my agent to use this skill?

Simply provide your background and character files to your agent and ask it to perform a photo character composite. You can specify a preferred composition or let the skill analyze the scene to determine the best scale and placement based on the horizon line and light sources.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
