mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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.
2.8 KiB
2.8 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| แปลง GIF เคลื่อนไหวเป็น WebP และในทางกลับกัน โดยรักษาทุกเฟรมไว้ | 20946e5001cb | human | b7b263942cab |
GIF/WebP Converter
แปลงไฟล์ GIF เคลื่อนไหวเป็น WebP และในทางกลับกัน โดยรักษาทุกเฟรมและจังหวะเวลาของภาพเคลื่อนไหว ภาพเคลื่อนไหว WebP โดยทั่วไปมีขนาดเล็กกว่า GIF ที่เทียบเท่ากันประมาณ 25-35%
API Endpoint
POST /api/v1/tools/image/gif-webp
รับข้อมูลแบบ multipart form data ที่มีไฟล์ GIF หรือ WebP และฟิลด์ JSON settings
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| quality | integer | No | 80 |
คุณภาพผลลัพธ์สำหรับการเข้ารหัส WebP (1-100) |
| lossless | boolean | No | false |
ใช้การบีบอัด WebP แบบ lossless |
| resizePercent | integer | No | 100 |
ปรับสัดส่วนผลลัพธ์ตามเปอร์เซ็นต์ (10-100) |
Example Request
curl -X POST http://localhost:1349/api/v1/tools/image/gif-webp \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@animation.gif" \
-F 'settings={"quality": 85, "resizePercent": 50}'
Example Response
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/animation.webp",
"originalSize": 3500000,
"processedSize": 2200000
}
Notes
- รับเฉพาะไฟล์
.gifและ.webpเท่านั้น เครื่องมือนี้ไม่รองรับรูปแบบภาพอื่นๆ - ทิศทางการแปลงเป็นแบบอัตโนมัติ: อินพุต GIF ผลิตเอาต์พุต WebP และอินพุต WebP ผลิตเอาต์พุต GIF
- ตัวเลือก
qualityและlosslessใช้ได้เฉพาะเมื่อเข้ารหัสเป็น WebP เมื่อแปลงเป็น GIF ผลลัพธ์จะใช้จานสี GIF มาตรฐาน - ใช้
resizePercentเพื่อลดขนาด (และขนาดไฟล์) ของภาพเคลื่อนไหวขนาดใหญ่