image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese图片格式转换
Image Format Conversion
规则
Rules
用户要转图片/改尺寸/做 ICO/转 Base64 → 跑 cyeam image convert → 返回结果。
用户: "把这张 PNG 转 JPG" → cyeam image convert input.png -f jpg
用户: "把这图缩小到宽 800" → cyeam image convert input.png -w 800 -f jpg
用户: "做一个 favicon.ico" → cyeam image convert input.png -f ico
用户: "转成 WebP" → cyeam image convert input.png -f webp
用户: "转成 Base64" → cyeam image convert input.png -f base64When the user wants to convert an image, resize it, create an ICO file, or convert it to Base64 → run → return the result.
cyeam image convertUser: "Convert this PNG to JPG" → cyeam image convert input.png -f jpg
User: "Resize this image to a width of 800" → cyeam image convert input.png -w 800 -f jpg
User: "Create a favicon.ico" → cyeam image convert input.png -f ico
User: "Convert it to WebP" → cyeam image convert input.png -f webp
User: "Convert it to Base64" → cyeam image convert input.png -f base64命令
Command
cyeam image convert <input> -f <format> [options]参数:
| 参数 | 说明 |
|---|---|
| 目标格式(必填):jpg / png / webp / gif / ico / base64 |
| 输出文件路径(未指定时用 |
| JPG 质量 1-100(默认 90,WebP 无损,此参数无效) |
| 目标宽度 px |
| 目标高度 px |
| 只给宽或高时按比例缩放(默认 true) |
cyeam image convert <input> -f <format> [options]Parameters:
| Parameter | Description |
|---|---|
| Target format (required): jpg / png / webp / gif / ico / base64 |
| Output file path (uses |
| JPG quality from 1–100 (default: 90; invalid for lossless WebP) |
| Target width in px |
| Target height in px |
| Scale proportionally when only the width or height is specified (default: true) |
支持的格式
Supported Formats
- 输入:PNG / JPG / GIF / WebP / SVG(栅格化)
- 输出:PNG / JPG / GIF / WebP(无损) / ICO(多尺寸 16/32/48px favicon) / Base64(data URL)
- Input: PNG / JPG / GIF / WebP / SVG (rasterized)
- Output: PNG / JPG / GIF / WebP (lossless) / ICO (multi-size 16/32/48px favicon) / Base64 (data URL)
输出
Output
- :写文件,stdout 输出
jpg/png/webp/gif/icosaved: <path> - :直接在 stdout 输出 data URL 文本(可配合
base64干净输出)--pretty
- : Writes the file and outputs
jpg/png/webp/gif/icoto stdoutsaved: <path> - : Outputs data URL text directly to stdout (use
base64for clean output)--pretty
注意事项
Notes
- 不需要登录
- SVG 输入会被栅格化为位图(256×256 默认,可通过宽高指定)
- ICO 输出自动包含 16/32/48 三个尺寸,浏览器按需要取
- WebP 输出为无损 VP8L(保留所有细节)
- 用 去掉 JSON 信封,只看输出
--pretty
- No login is required
- SVG inputs are rasterized into bitmaps (256×256 by default; specify the width and height to change this)
- ICO outputs automatically include three sizes: 16/32/48px, and the browser selects the required size
- WebP output uses lossless VP8L and preserves all details
- Use to remove the JSON envelope and display only the output
--pretty