feat: optimize compression and production deployment

This commit is contained in:
237899745
2026-07-25 11:20:45 +08:00
parent 9d7668bdee
commit 0ff9eae56d
15 changed files with 882 additions and 771 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
<li>Base URL:<code>https://ys.workyai.cn/api/v1</code></li>
<li>认证方式:<code>X-API-Key</code>(推荐)或 <code>Authorization: Bearer &lt;token&gt;</code></li>
<li>支持格式:PNG / JPG / JPEG / WebP / AVIF / GIF(静态)/ BMP / TIFF / ICO(支持 output_format 转码)</li>
<li>压缩率:<code>compression_rate</code> 1-100,表示压缩后体积占原图比例,100 为不压缩</li>
<li>压缩率:<code>compression_rate</code> 1-100;JPEG/WebP/AVIF 以该比例为体积上限,无损格式为尽力优化</li>
<li>计量:成功压缩 1 个文件计 1 次;若体积未变小或压缩率为 100,则不扣额度</li>
</ul>
</div>
+3 -1
View File
@@ -532,7 +532,9 @@ async function resendVerification() {
step="1"
class="w-full"
/>
<div class="text-xs text-slate-500">数值越小压缩越强,目标为压缩后体积占原图比例(100% 为不压缩)。</div>
<div class="text-xs text-slate-500">
数值越小压缩越强;JPEG/WebP/AVIF 会以此为体积上限,无损格式按安全方式优化并显示实际结果。
</div>
</label>
<!-- 目标大小模式 -->