docs: audit all 157 tool pages against live schemas

Reconcile every tool page's parameters, defaults, and response shape against the tool's Zod settings schema and executionHint in code. Notable fixes: color-palette (add count + format params, hex output, median-cut algorithm), favicon (add 5 params, was documented as having none), qr-generate (add logoDataUri), convert (add ppm/eps/tga formats), video-loudnorm (-16 LUFS not -14), smart-crop (async 202 not sync 200), images-to-video (1080x1080 square), and several output-filename and behavior-note corrections.

Also normalize API endpoint paths to /api/v1/tools/<id> (no modality segment) and standardize curl examples on the Docker API port 1349. Verified with a clean docs build.
This commit is contained in:
SnapOtter
2026-06-18 14:12:28 +08:00
parent d24e244af4
commit 8532f3227b
160 changed files with 518 additions and 441 deletions
+7 -7
View File
@@ -4,7 +4,7 @@ Resize, optimize, change speed, reverse, extract frames, and rotate animated GIF
## API Endpoint
`POST /api/v1/tools/image/gif-tools`
`POST /api/v1/tools/gif-tools`
## Parameters
@@ -60,7 +60,7 @@ Resize, optimize, change speed, reverse, extract frames, and rotate animated GIF
### Resize
```bash
curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
curl -X POST http://localhost:1349/api/v1/tools/gif-tools \
-F "file=@animation.gif" \
-F 'settings={"mode":"resize","percentage":50}'
```
@@ -68,7 +68,7 @@ curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
### Optimize
```bash
curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
curl -X POST http://localhost:1349/api/v1/tools/gif-tools \
-F "file=@large.gif" \
-F 'settings={"mode":"optimize","colors":128,"effort":9}'
```
@@ -76,7 +76,7 @@ curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
### Speed Up
```bash
curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
curl -X POST http://localhost:1349/api/v1/tools/gif-tools \
-F "file=@animation.gif" \
-F 'settings={"mode":"speed","speedFactor":2.0}'
```
@@ -84,7 +84,7 @@ curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
### Extract Single Frame
```bash
curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
curl -X POST http://localhost:1349/api/v1/tools/gif-tools \
-F "file=@animation.gif" \
-F 'settings={"mode":"extract","extractMode":"single","frameNumber":5,"extractFormat":"png"}'
```
@@ -102,14 +102,14 @@ curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools \
## Info Sub-Route
`POST /api/v1/tools/image/gif-tools/info`
`POST /api/v1/tools/gif-tools/info`
Returns metadata about an animated GIF without processing it.
### Info Request
```bash
curl -X POST http://localhost:13490/api/v1/tools/image/gif-tools/info \
curl -X POST http://localhost:1349/api/v1/tools/gif-tools/info \
-F "file=@animation.gif"
```