feat: ComfyUI 改走 10.60.74.221,测试页上传图超阈值自动降采样
将 worker 默认 ComfyUI 地址改为远端 10.60.74.221:8188;前端测试页在像素超过 1536000 时等比缩小到 786432 以内。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
.diff-list { font-size: 12px; color: #6b7280; margin-top: 6px; line-height: 1.7; }
|
||||
.diff-list li { margin-left: 18px; }
|
||||
</style>
|
||||
<script src="/static/img_downscale.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -129,8 +130,9 @@ function setStatus(text, type) {
|
||||
|
||||
async function submitTest() {
|
||||
const fileInput = $('imageFile');
|
||||
const file = fileInput.files[0];
|
||||
let file = fileInput.files[0];
|
||||
if (!file) { setStatus('请先选择一张图片', 'error'); return; }
|
||||
file = await window.downscaleImageFile(file);
|
||||
|
||||
const _reqStart = performance.now();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user