mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -2,17 +2,17 @@
|
||||
description: Compare two images side by side with pixel-level diff visualization and similarity score.
|
||||
---
|
||||
|
||||
# Image Compare
|
||||
# Image Compare {#image-compare}
|
||||
|
||||
Upload two images to compute a pixel-level difference map and a numerical similarity percentage. The output is a diff image highlighting changed regions in red.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/image/compare`
|
||||
|
||||
Accepts multipart form data with **two** image files. No settings field is needed.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload exactly two image files.
|
||||
|
||||
@@ -21,7 +21,7 @@ This tool has no configurable parameters. Upload exactly two image files.
|
||||
| file (first) | file | Yes | The first image |
|
||||
| file (second) | file | Yes | The second image |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/image/compare \
|
||||
@@ -30,7 +30,7 @@ curl -X POST http://localhost:1349/api/v1/tools/image/compare \
|
||||
-F "file=@modified.jpg"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -43,7 +43,7 @@ curl -X POST http://localhost:1349/api/v1/tools/image/compare \
|
||||
}
|
||||
```
|
||||
|
||||
## Response Fields
|
||||
## Response Fields {#response-fields}
|
||||
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
@@ -54,7 +54,7 @@ curl -X POST http://localhost:1349/api/v1/tools/image/compare \
|
||||
| originalSize | number | Combined size of both input images in bytes |
|
||||
| processedSize | number | Size of the diff output image in bytes |
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Both images are resized to the same dimensions (the maximum of each axis) before comparison.
|
||||
- The diff image highlights differences in red with opacity proportional to the magnitude of change. Identical or near-identical pixels (difference < 10) are shown as semi-transparent versions of the original.
|
||||
|
||||
Reference in New Issue
Block a user