task icon Task

Colorize Photo

Apply historically accurate colorization to a black-and-white or faded photo

Requirements
Absolute path to the black-and-white or faded photo to colorize. Optional: known era or decade, any context about subjects (e.g., military branch, location, occasion).
3

Analyze the provided photo internally to identify the likely era and context. Look for visual cues:

  • Clothing styles (collars, hemlines, silhouettes)
  • Hairstyles
  • Architecture visible
  • Vehicles or technology
  • Any military uniforms (identify nation and branch if possible)

If the user provided context about the era or subjects, incorporate that. Only ask the user for clarification if the era is truly unclear and no context was provided.

4

Based on your era identification and the colorization guide, craft a detailed colorization prompt. Include:

  • The identified era and appropriate color palette
  • Specific colors for identifiable elements (military uniforms, common fashion items)
  • Guidance to apply historically accurate colors but render them with modern film photography quality—natural color depth, realistic saturation, modern film grain, proper exposure
  • Instructions to make it look like a photo taken on modern color film, not a colorized vintage photo
6

Present the colorized result. Tell the user where the image was saved and offer to adjust colors or saturation if needed.

                    To run this task you must have the following required information:

> Absolute path to the black-and-white or faded photo to colorize. Optional: known era or decade, any context about subjects (e.g., military branch, location, occasion).

If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.

---

You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. [Run Code: Verify Gemini Connection]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/media.gemini.verify/preview,
    "args": [

    ]
  },
  "packages": null
}
```

2. [Read Historical Photo Colorization Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/media.colorize.guide.md` (Historical accuracy guidance—era identification, military uniforms, fashion colors, common mistakes)

3. Analyze the provided photo internally to identify the likely era and context. Look for visual cues:
- Clothing styles (collars, hemlines, silhouettes)
- Hairstyles
- Architecture visible
- Vehicles or technology
- Any military uniforms (identify nation and branch if possible)

If the user provided context about the era or subjects, incorporate that. Only ask the user for clarification if the era is truly unclear and no context was provided.


4. Based on your era identification and the colorization guide, craft a detailed colorization prompt. Include:
- The identified era and appropriate color palette
- Specific colors for identifiable elements (military uniforms, common fashion items)
- Guidance to apply historically accurate colors but render them with modern film photography quality—natural color depth, realistic saturation, modern film grain, proper exposure
- Instructions to make it look like a photo taken on modern color film, not a colorized vintage photo


5. [Gather Arguments: Generate or Edit Image] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `prompt`: the colorization prompt you crafted
- `imagePath`: absolute path to the source photo from requirements
- `outputDir`: state:media.images.generated (category: colorized)

6. [Run Code: Generate or Edit Image]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/media.image.generate/preview,
    "args": [
      "prompt",
      "imagePath",
      "outputDir"
    ]
  },
  "packages": null
}
```

7. Present the colorized result. Tell the user where the image was saved and offer to adjust colors or saturation if needed.