# Photo to line drawing

- Human page: https://happytails.ai/en/image-tools/photo-to-line-drawing/
- Markdown: https://happytails.ai/en/image-tools/photo-to-line-drawing.md
- Structured JSON: https://happytails.ai/agents/en/image-tools/photo-to-line-drawing/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `photo-to-line-drawing` |
| Category | image-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Use the visible action or interactive controls. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Runs in your browser. Animated inputs produce a single still image. Supported decoding depends on your browser.

### Inputs and settings

No free-text input is required. Use the file inputs and/or settings below.

Accepted browser files: `image/*,.svg,.avif`. Choose one file.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `threshold` | Outline threshold | number | 35 |  |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Create outlines using local edge detection with threshold, smoothing and line controls; compare original and result; export PNG, with SVG only after real vector tracing is implemented; validate portraits and noisy backgrounds without requiring generative AI.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "photo-to-line-drawing",
  "category": "image-tools",
  "built": true,
  "requirements": "Create outlines using local edge detection with threshold, smoothing and line controls; compare original and result; export PNG, with SVG only after real vector tracing is implemented; validate portraits and noisy backgrounds without requiring generative AI.",
  "implementation": {
    "fields": [
      {
        "key": "threshold",
        "label": "Outline threshold",
        "value": 35,
        "type": "number"
      }
    ],
    "files": true,
    "accept": "image/*,.svg,.avif",
    "input": false,
    "note": "Runs in your browser. Animated inputs produce a single still image. Supported decoding depends on your browser.",
    "experience": {
      "automatic": false,
      "single": false,
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Up to 1,000,000 characters. Review the settings before running.",
      "action": "Convert file"
    },
    "mode": "explicit",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Create an edge-based line drawing from an image.

## Useful next steps

- [Crop image](https://happytails.ai/en/image-tools/crop-image/): Crop a rectangular area from your image. ([Markdown](https://happytails.ai/en/image-tools/crop-image.md))

- [Adjust brightness](https://happytails.ai/en/image-tools/adjust-brightness/): Make an image lighter or darker. ([Markdown](https://happytails.ai/en/image-tools/adjust-brightness.md))

- [Word art generator](https://happytails.ai/en/design-tools/word-art-generator/): Create styled or stacked display text with font, fill, outline, spacing and layout controls. ([Markdown](https://happytails.ai/en/design-tools/word-art-generator.md))

## How to use Photo to line drawing

1. Choose a file in an image format your browser can open.
2. Review the settings, then choose Convert file.
3. Review the result, then use Copy result or a download link when available.

## What to expect

Create an edge-based line drawing from an image. The result highlights visible edges. It is a local image effect, so fine detail and low-contrast areas may look different.
