feat(i18n): 21-language pipeline, landing/docs/API wiring, landing+API translations

Shared Claude Code translation pipeline (scripts/i18n, no API key) plus Astro/VitePress/Scalar i18n wiring. Landing and API reference translated into all 20 languages; docs i18n wiring + English source anchors. The translated docs markdown (apps/docs/<locale>/**, 3,620 files) follows in a companion PR because it exceeds GitHub's per-PR CI file limit.
This commit is contained in:
SnapOtter
2026-07-11 13:01:55 +08:00
committed by GitHub
parent 2e91368816
commit 00b651c9f8
353 changed files with 564607 additions and 2594 deletions
+9 -9
View File
@@ -2,11 +2,11 @@
description: Fix fake transparent PNGs with AI matting (BiRefNet) to produce true alpha, plus defringe edge cleanup.
---
# PNG Transparency Fixer
# PNG Transparency Fixer {#png-transparency-fixer}
Fix fake transparent PNGs in one click. Uses AI matting (BiRefNet HR Matting model) to produce true alpha transparency, with defringe post-processing to clean up edges.
## API Endpoint
## API Endpoint {#api-endpoint}
`POST /api/v1/tools/image/transparency-fixer`
@@ -14,7 +14,7 @@ Fix fake transparent PNGs in one click. Uses AI matting (BiRefNet HR Matting mod
**Model bundle:** `background-removal` (4-5 GB)
## Parameters
## Parameters {#parameters}
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
@@ -23,7 +23,7 @@ Fix fake transparent PNGs in one click. Uses AI matting (BiRefNet HR Matting mod
| outputFormat | string | No | `"png"` | Output format: `png` or `webp` |
| removeWatermark | boolean | No | `false` | Apply watermark removal pre-processing (median filter) |
## Example Request
## Example Request {#example-request}
```bash
curl -X POST http://localhost:1349/api/v1/tools/image/transparency-fixer \
@@ -31,9 +31,9 @@ curl -X POST http://localhost:1349/api/v1/tools/image/transparency-fixer \
-F 'settings={"defringe":40,"outputFormat":"png"}'
```
## Response
## Response {#response}
### Initial Response (202 Accepted)
### Initial Response (202 Accepted) {#initial-response-202-accepted}
```json
{
@@ -42,14 +42,14 @@ curl -X POST http://localhost:1349/api/v1/tools/image/transparency-fixer \
}
```
### Progress (SSE at `/api/v1/jobs/{jobId}/progress`)
### Progress (SSE at `/api/v1/jobs/{jobId}/progress`) {#progress-sse-at-api-v1-jobs-jobid-progress}
```
event: progress
data: {"phase":"processing","stage":"Processing transparency...","percent":50}
```
### Final Result (via SSE)
### Final Result (via SSE) {#final-result-via-sse}
```json
{
@@ -65,7 +65,7 @@ data: {"phase":"processing","stage":"Processing transparency...","percent":50}
}
```
## Notes
## Notes {#notes}
- Requires the `background-removal` model bundle to be installed (4-5 GB).
- Uses `birefnet-hr-matting` as the primary model for high-quality alpha matting. Falls back to `birefnet-general` if the HR model runs out of memory.