Skip to content

12 个视觉参考图库与浏览器无限画布 AI 创作台(5,700+ 素材、中英提示词、多图对比、ComfyUI & MCP)· Visual reference library & infinite-canvas AI studio in the browser

Merge branch 'feat/new-modules' into main(R2 切换收口同批部署)

atuizzed01734c93f0
diff --cc build.py
index cfb6a61,c3f5868..19e1d45
--- a/build.py
+++ b/build.py
@@@ -112,12 -142,9 +142,13 @@@ if os.path.exists(f'{AROOT}/p/t')
if AHOST:
open(f'{AD}/_headers','w').write('/*\n Cache-Control: public, max-age=31536000, immutable\n Access-Control-Allow-Origin: *\n/o/*\n Content-Disposition: attachment\n')
with ProcessPoolExecutor() as ex: list(ex.map(cv,pd)); list(ex.map(cm,cd)); list(ex.map(ca,ad)); list(ex.map(cr,rd))
+ for _sub,_items in NEWMODS: _cnew(_sub,_items)
# 深度姿势:只解析素材包里的文本,热链包不复制图片(见 depthpack.py)
_dc=depthpack.catalog(); DJ=J(_dc['payload']); DEPTH_ORIGINS=_dc['origins']
+if AHOST:
+ # 图片自存模式:深度图已全量存入图片域名下的 d/ 前缀(上游 /thumbs/→/d/thumbs/、/img/→/d/img/),
+ # 条目地址改走自存,不再热链原站(原站不可用时前端会整批找不到图);署名用的裸域名链接不在替换范围内。
+ DJ=DJ.replace('https://ai-pose-depth-gallery.pages.dev/thumbs/',AHOST+'/d/thumbs/').replace('https://ai-pose-depth-gallery.pages.dev/img/',AHOST+'/d/img/')
for src,rel in _dc['copies']:
dest=f'{D}/{rel}'; os.makedirs(os.path.dirname(dest),exist_ok=True); shutil.copyfile(src,dest)
exec(open('post.py').read())