feat(images): 插件侧图片策略 v2 —— 全部改走宿主小图(album/promptlib/batch-export/annotate/vectorize/white-bg/cutout)
validate / validate (push) Canceled after 0s
validate / validate (push) Canceled after 0s
This commit is contained in:
1 parent
70613a4112
commit
9ceaa7d699
15 files changed
+53
-24
No files matched your search
@@ -9214,7 +9214,8 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
if (!editor || typeof editor.open !== "function") {
|
||||
return Promise.reject(new Error("标注编辑器未加载"));
|
||||
}
|
||||
return Promise.resolve(ctx.canvas.getNodeImage(id)).then(function(image) {
|
||||
// v: 编辑器入口封顶 4096 长边(原生缩),避免 8K 原图整幅进 canvas
|
||||
return Promise.resolve(ctx.canvas.getNodeImage(id, { max: 4096 })).then(function(image) {
|
||||
if (!image || !image.dataUrl) {
|
||||
throw new Error(image && image.url ? "该节点是远程图片,暂不支持标注(请先转存为本地位图)" : "该节点没有可编辑的图片");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user