docs: 更新导出示例并补充 license 与 coverage 依赖

This commit is contained in:
2026-03-26 14:17:58 +08:00
parent 6db14bff7e
commit 876d148f1e
2 changed files with 112 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ pptopic export presentation.pptx
pptopic export presentation.pptx --output result.png
# 优化导出的图片
pptopic export presentation.pptx --optimize
pptopic export presentation.pptx --optimize -o result.png
# 自定义宽度和最大高度
pptopic export presentation.pptx --width 1080 --optimize --max-height 20000
@@ -64,6 +64,7 @@ pptopic optimize image.png --max-height 20000 --engine pngquant
## 图片优化
推荐使用 [pngquant](https://pngquant.org/) 进行图片压缩。
当然,使用自己熟悉的图片优化压缩引擎是一样的。
### 自动安装脚本
@@ -84,3 +85,7 @@ pptopic optimize image.png --max-height 20000 --engine pngquant
```bash
scoop install pngquant
```
## License
MIT License