Back to skills

DnR FlatPic

Compresses busy photos into sparse, saturated flat-vector illustrations, with optional poster and SVG output.

CreateLafont

Designers / Marketers / Developers

Photo editingLicence: MITGitHub stars19
Example output of the DnR FlatPic agent skill

Preview: example output from CreateLafont/dnr-flat-pic by CreateLafont, reproduced under the MIT licence.

Suggested prompts

Written by PicGens as starting points. Click one to copy it, then paste it to your agent once the skill is installed.

About this skill

DnR FlatPic turns photographs and visually dense images into sparse, bright flat illustrations that are still recognisable. Its method is what the author calls semantic compression: rather than tracing every edge, it keeps one primary idea, arranges a small supporting hierarchy around it, and paints with a fixed palette assigned by role, solid fills, crisp boundaries and hard-edged light and shadow.

The skill includes handling for aspect-ratio changes, revisions and retries, so a second attempt does not drift from the first. The base output is a raster PNG from the host’s image model. Once that base image works, it can derive a poster composition, a square SVG icon or an SVG at the original ratio. It is also distributed as a ZIP on the releases page for uploading to ChatGPT or Codex.

What it makes

A flat-style PNG illustration, with optional poster and SVG exports.

Before you install: An agent with image generation.

From the project README

Reproduced from CreateLafont/dnr-flat-pic by CreateLafont under the MIT licence.

DnR FlatPic v2.0 — Photo-to-Flat Illustration Agent Skill

DnR FlatPic icon

DnR FlatPic v2.0 is an open-source Agent Skill for ChatGPT, Codex, Claude Code, and other Agent Skills-compatible AI agents. It transforms photographs and visually dense images into sparse, recognizable, high-saturation flat-vector-style illustrations through semantic compression instead of literal tracing, while preserving composition and identity anchors. Final images use fixed-HSB solid fills with crisp boundaries and no gradients, glow, blur, or photographic surface texture.

Keywords: photo-to-flat illustration, photo-to-vector illustration, image abstraction, iconification, semantic compression, flat illustration, flat-vector art, ChatGPT Skill, Codex Skill, Agent Skill, 照片转扁平插画。

Source: https://github.com/CreateLafont/dnr-flat-pic

Release identity: DnR FlatPic v2.0 / $dnr-flat-pic

One-command installation:

npx skills add CreateLafont/dnr-flat-pic

Ask your coding agent to install it:

Install the Agent Skill from https://github.com/CreateLafont/dnr-flat-pic

中文:

请从下面的 GitHub 仓库安装这个 Agent Skill:https://github.com/CreateLafont/dnr-flat-pic

Download the latest upload bundle: skill.zip

Example semantic requests:

  • Turn this photo into a high-saturation flat-vector-style illustration with no gradients.
  • 把这张照片转换成无渐变的高饱和扁平插画。

Highlights

  • Semantic compression instead of literal tracing.
  • One primary semantic system with a controlled supporting hierarchy.
  • Fixed HSB palette with role-based color assignment rather than source-hue matching.
  • Solid flat fills, crisp boundaries, and hard-edged discrete light and shadow.
  • Dedicated handling for aspect-ratio changes, revisions, source cleanup, and retry control.
  • Base output remains a raster PNG.
  • After a successful base output, optional poster composition, square SVG icon generation, and native-ratio SVG export are available as explicit derived actions.

Showcase

The following boards are manually composed presentation mockups. They combine source photographs with selected DnR FlatPic illustrations and are not raw, unedited skill outputs.

Waterfront bench showcase Sunset bridge showcase

Installation

For cross-agent installation, use:

npx skills add CreateLafont/dnr-flat-pic

For a direct ChatGPT or Codex upload, download skill.zip from GitHub Releases and upload it through the product's Skills interface. The bundle keeps SKILL.md at the archive root.

For manual Codex installation, clone or download this repository directly into the Codex skills directory so the final path is:

$CODEX_HOME/skills/dnr-flat-pic/SKILL.md

On a default Windows installation, the path is commonly:

C:\Users\<username>\.codex\skills\dnr-flat-pic\SKILL.md

Restart or refresh Codex after installation if the skill does not appear immediately.

This v2.0 release uses the existing dnr-flat-pic Skill identity and replaces the earlier version at that path.

Usage

Attach a source photograph and invoke:

$dnr-flat-pic

Example request:

Use DnR FlatPic v2 to reconstruct this photograph as a clean flat illustration.
Preserve the original composition and aspect ratio.

After the accepted illustration is delivered, request one explicit action:

生成海报
生成 SVG 图标
导出当前插画 SVG(原比例)
都要

The installed skill reads base rendering rules from the bundled core references. Poster, square-source, and SVG details are loaded only for the selected derived action. Derived actions require a user-installed Node.js LTS; the Skill never installs Node.

Color System

The authoritative HSB values, tolerances, and role-assignment rules live exclusively in references/generation-spec.md. Other files reference palette roles without redefining their numeric values.

Repository Structure

SKILL.md                         v2.0 Skill entry point and workflow
agents/openai.yaml               Codex UI metadata
assets/icon.svg                  Codex UI icon
references/generation-spec.md    Flat rendering, HSB palette, and cleanup rules
references/semantic-complexity.md
references/aspect-ratio-adaptation.md
references/examples-and-failures.md
references/square-source.md      Conditional square-source workflow
references/poster-output.md      Conditional poster workflow
references/svg-output.md         Conditional SVG workflows
assets/poster-layout.json        Figma-derived fixed poster geometry
assets/ios-continuous-rounded-square.svg
runtime/                         Bundled pure WASM/JS dependencies, no Node binary
scripts/                         Deterministic derived-output scripts
docs/showcase/                   Two manually composed documentation mockups
docs/support/                    Optional Alipay and WeChat tip codes
scripts/package-skill.ps1       Reproducibly builds the uploadable skill.zip

Known Limitations

  • Image generation is model-dependent and may vary between runs.
  • Prompt constraints improve palette and flat-color consistency but are not pixel-level rendering guarantees.
  • The base output is a raster illustration; SVGs are deterministic VTracer traces of accepted PNGs, not semantic hand-authored vectors.
  • Poster and SVG derived actions require a user-installed Node.js LTS and local command/file execution. The Skill does not download or install Node.
  • Source text, logos, and interface elements may require revision when a model retains them.

Feedback

Open a GitHub issue for reproducible problems or general improvements. Do not submit third-party style-reference images or example photographs without clear redistribution rights.

Voluntary Support

DnR FlatPic is free and open source. Optional Alipay and WeChat tips are described in SUPPORT.md. Tipping does not unlock features, services, support priority, or additional rights.

License

MIT

How to install DnR FlatPic

  1. 1.Skills CLI

    npx skills add CreateLafont/dnr-flat-pic

Licence and attribution

DnR FlatPic is created and maintained by CreateLafont and published at github.com/CreateLafont/dnr-flat-pic under the MIT licence. The summary, suggested prompts and “About this skill” text are written by PicGens; the README section is reproduced under the project’s licence. The preview is an example image from the repository, reproduced under its licence. PicGens is not affiliated with the author.

Related skills

All skills →
  • GitHub card for ZzzLc0405/photo-abstract-editorial

    Photo Abstract Editorial

    Get your photo, untouched, paired with a minimal abstract panel and a one-line poetic title.

    ZzzLc0405GitHub stars: 5.8k
  • Example output of the Photo Revival agent skill

    Photo Revival

    Get your throwaway snapshot back as a small poetic sketch on a blank page, with a caption.

    dacnay816y62-hubGitHub stars: 574
  • GitHub card for GZ-L/photo-to-poster-skills

    Photo-to-Poster Skills

    Get a gallery-style art poster from your photo in one of fourteen styles, from watercolour to papercraft.

    GZ-LGitHub stars: 25
  • GitHub card for anthropics/skills

    Canvas Design

    Get an original poster or art print drawn in code, plus the design philosophy behind it.

    anthropicsGitHub stars: 179k

Looking for prompts instead of a skill?

Browse real portrait & photo prompts with the images they made, or give your agent the free PicGens template skill.