将图片压缩为 WebP 格式,最高可节省 99% 体积
📚 API 使用文档
API 端点
POST /api/compress-image?size=1200cURL 示例
# 大尺寸 (1200x1200) curl -X POST \ -H "Content-Type: image/jpeg" \ --data-binary @image.jpg \ "https://processimage.mexxxxai.win/api/compress-image?size=1200" \ -o compressed-1200.webp # 小尺寸 (500x500) curl -X POST \ -H "Content-Type: image/jpeg" \ --data-binary @image.jpg \ "https://processimage.mexxxxai.win/api/compress-image?size=500" \ -o compressed-500.webp
技术规格
- 输出格式: WebP
- 压缩质量: 85%
- 支持尺寸: 1200x1200 或 500x500
- 最大文件: 100MB
- 保持宽高比: 是