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
+10 -6
View File
@@ -1,10 +1,14 @@
---
description: Convert PDF pages to high-quality images.
---
# PDF to Image
Convert PDF pages to high-quality raster images. Supports page selection, multiple output formats, DPI control, and color modes. Includes info and preview sub-routes for inspecting PDFs before conversion.
## API Endpoint
`POST /api/v1/tools/pdf/pdf-to-image`
`POST /api/v1/tools/pdf-to-image`
## Parameters
@@ -19,7 +23,7 @@ Convert PDF pages to high-quality raster images. Supports page selection, multip
## Example Request
```bash
curl -X POST http://localhost:13490/api/v1/tools/pdf/pdf-to-image \
curl -X POST http://localhost:1349/api/v1/tools/pdf-to-image \
-F "file=@document.pdf" \
-F 'settings={"format":"png","dpi":300,"pages":"1-3","colorMode":"color"}'
```
@@ -56,14 +60,14 @@ curl -X POST http://localhost:13490/api/v1/tools/pdf/pdf-to-image \
## Info Sub-Route
`POST /api/v1/tools/pdf/pdf-to-image/info`
`POST /api/v1/tools/pdf-to-image/info`
Returns the page count of a PDF without rendering any pages.
### Info Request
```bash
curl -X POST http://localhost:13490/api/v1/tools/pdf/pdf-to-image/info \
curl -X POST http://localhost:1349/api/v1/tools/pdf-to-image/info \
-F "file=@document.pdf"
```
@@ -77,14 +81,14 @@ curl -X POST http://localhost:13490/api/v1/tools/pdf/pdf-to-image/info \
## Preview Sub-Route
`POST /api/v1/tools/pdf/pdf-to-image/preview`
`POST /api/v1/tools/pdf-to-image/preview`
Returns low-resolution JPEG thumbnails of all pages as base64 data URLs. Useful for building a page selection UI.
### Preview Request
```bash
curl -X POST http://localhost:13490/api/v1/tools/pdf/pdf-to-image/preview \
curl -X POST http://localhost:1349/api/v1/tools/pdf-to-image/preview \
-F "file=@document.pdf"
```