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
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@iwb-plugin/batch-export",
|
||||
"private": true,
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"description": "批量出图:资源中心面板里勾选 ref 节点,串行跑(可选本机抠图)→ 白底/透明合成 → 双版本编码 → 打包 ZIP 下载;行内可单张下载 JPG/PNG",
|
||||
"ibwPlugin": {
|
||||
"id": "batch-export",
|
||||
|
||||
@@ -577,7 +577,7 @@
|
||||
|
||||
async function makeSrcThumb(nodeId) {
|
||||
if (!ctx.canvas || typeof ctx.canvas.getNodeImage !== 'function') return null
|
||||
var image = await ctx.canvas.getNodeImage(nodeId)
|
||||
var image = await ctx.canvas.getNodeImage(nodeId, { max: 64 }) // v: 缩略预览只要 64px,别整幅解码
|
||||
var src = image && (image.dataUrl || image.url)
|
||||
if (!src) return null
|
||||
var img = await loadImageEl(src)
|
||||
|
||||
Reference in new issue
Block a user