Files
SnapOtter/apps/docs/ja/tools/image/blur-background.md
T
SnapOtterandGitHub 4963ab3bbd feat(docs-i18n): translate all documentation into 20 languages
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
2026-07-11 13:52:47 +08:00

52 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: "AI を使用して、被写体をシャープに保ちながら背景をぼかします。"
i18n_source_hash: 9073f10e6e9d
i18n_provenance: human
i18n_output_hash: 4539ec15578d
---
# Blur Background {#blur-background}
被写体をシャープに保ちながら画像の背景をぼかします。AI モデルが被写体を切り出し、元の背景にぼかしを適用して、シャープな被写体を上に合成します。
## API Endpoint {#api-endpoint}
`POST /api/v1/tools/image/blur-background`
画像ファイルと JSON の `settings` フィールドを含むマルチパートフォームデータを受け付けます。
## Parameters {#parameters}
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| intensity | integer | No | `50` | ぼかしの強度 (1 100) |
| feather | integer | No | `0` | エッジのぼかし半径 (0 ~ 20) |
| format | string | No | `"png"` | 出力形式: `png` または `webp` |
## Example Request {#example-request}
```bash
curl -X POST http://localhost:1349/api/v1/tools/image/blur-background \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@photo.jpg" \
-F 'settings={"intensity": 75, "feather": 3}'
```
## Example Response {#example-response}
```json
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"async": true
}
```
進捗は `GET /api/v1/jobs/{jobId}/progress` の SSE で追跡できます。ジョブが完了すると、SSE ストリームがダウンロード URL 付きの `completed` イベントを発行します。
## Notes {#notes}
- これは `202 Accepted` を返し、非同期で処理する AI 対応ツールです。SSE エンドポイントに接続して進捗の更新と最終結果を受け取ってください。
- **background-removal** 機能バンドルのインストールが必要です。バンドルが利用できない場合は `501` を返します。
- 強度の値が高いほど、より強いぼかし効果が得られます。80 を超える値は、ボケのような際立った分離を作り出します。
- HEIC、RAW、PSD、SVG の入力は処理前に自動的にデコードされます。