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
@@ -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