Skip to content

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

home: public counts (non-adult), counters follow 18+ switch, twitter:description

atuizz79b21326e015
diff --git a/seo.py b/seo.py
index b2f1e2f..0cbadbe 100644
--- a/seo.py
+++ b/seo.py
@@ -20,7 +20,7 @@ RLEN={'短发':('short-hair','Short hair'),'中长发':('medium-hair','Medium ha
COLS={'黑':'black','白':'white','红':'red','粉':'pink','蓝':'blue','藏青':'navy','棕':'brown','米':'beige','象牙白':'ivory','灰':'grey','绿':'green','黄':'yellow','紫':'purple','金':'gold','银':'silver','卡其':'khaki','酒红':'burgundy','橙':'orange','奶油':'cream','薄荷':'mint','薰衣草':'lavender','橄榄':'olive'}
ITEMK={'连衣裙':'dress','半身裙':'skirt','短裤':'shorts','长裤':'trousers','牛仔裤':'jeans','大衣':'coat','夹克':'jacket','开衫':'cardigan','衬衫':'blouse','毛衣':'sweater','吊带':'camisole','泳衣':'swimsuit','靴子':'boots','高跟鞋':'high heels','运动鞋':'sneakers','凉鞋':'sandals','连裤袜':'tights','长筒袜':'stockings'}
cz=lambda k:k if k.endswith('白') else k+'色'
-SP=[p for p in PL if not p.get('a')];SC=[c for c in cos if not c.get('a')];SR=pors
+NA=sum(len(p['angles']) for p in poses.values());SP=[p for p in PL if not p.get('a')];NA_PUB=sum(len(p['angles']) for p in SP);SC=[c for c in cos if not c.get('a')];SR=pors
def ctags(c):
w=' '+c['kw']+' ';e=' '+c['en'].replace(',',' ')+' '
return [('item',z,ITEMK[z]) for z in ITEMK if ' '+ITEMK[z]+' ' in e]+[('col',z,COLS[z]) for z in COLS if ' '+COLS[z]+' ' in w]
@@ -67,7 +67,7 @@ def shell(lang,path,title,desc,body,ld,en=True,og=None,ogt='website'):
'图片来自 AI Pose Gallery / AI Costume Gallery(原作者 @giaaibusi)与 AI Portrait Gallery(@agi_aibusi,CC0 1.0),均为 AI 生成图,中文描述由本站整理。<a href="/">返回首页</a>')
return f'''<!doctype html><html lang="{'en' if lang=='en' else 'zh-CN'}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>{E(title)}</title><meta name="description" content="{E(desc[:160])}"><link rel="canonical" href="{url(lang,path)}">{alts(path) if en else ''}
-<meta property="og:type" content="{ogt}"><meta property="og:site_name" content="衣姿 PoseWear"><meta property="og:title" content="{E(title)}"><meta property="og:description" content="{E(desc[:160])}"><meta property="og:image" content="{SITE}/{og or 'og.png'}"><meta property="og:url" content="{url(lang,path)}"><meta property="og:locale" content="{'en_US' if lang=='en' else 'zh_CN'}"><meta name="twitter:card" content="summary_large_image">
+<meta property="og:type" content="{ogt}"><meta property="og:site_name" content="衣姿 PoseWear"><meta property="og:title" content="{E(title)}"><meta property="og:description" content="{E(desc[:160])}"><meta property="og:image" content="{SITE}/{og or 'og.png'}"><meta property="og:url" content="{url(lang,path)}"><meta property="og:locale" content="{'en_US' if lang=='en' else 'zh_CN'}"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:description" content="{E(desc[:160])}">
<link rel="icon" href="/favicon.svg" type="image/svg+xml"><style>{CSS2}</style>
<script type="application/ld+json">{json.dumps({"@context":"https://schema.org","@graph":ld},ensure_ascii=False,separators=(',',':'))}</script></head><body>
<header><a href="{P}/">{LOGO}衣姿 PoseWear</a>{nav}</header>
@@ -193,7 +193,7 @@ for lang in ['zh','en']:
# ---- 英文首页 ----
def featured(lang,n=12):return ''.join(cardli(lang,'costume',c) for c in SC[:n])
catlinks=lambda lang:''.join(f'<li><a href="{"/en" if lang=="en" else ""}/{k}/{s}/">{E(z if lang=="zh" else e)}</a></li>' for k in ['pose','costume'] for s,z,e,L in CATS[k])
-en_desc=f"PoseWear: {len(SP)} pose references with multiple camera angles, {len(SC)} outfit references and {len(SR)} CC0 portrait face references, all with English and Chinese prompts — plus online AI try-on."
+en_desc=f"PoseWear: {len(SP)} pose sets ({NA_PUB} angle images), {len(SC):,} outfits and {len(SR):,} CC0 portraits, all with English and Chinese prompts — plus online AI try-on."
ENLD=[{"@type":"WebSite","@id":SITE+'/en/#website',"url":SITE+'/en/',"name":"PoseWear","alternateName":"衣姿 PoseWear","inLanguage":"en","description":en_desc,"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":SITE+'/?t=costume&q={search_term_string}'},"query-input":"required name=search_term_string"}},
{"@type":"WebApplication","name":"PoseWear","url":SITE+'/en/',"applicationCategory":"DesignApplication","operatingSystem":"Any (web browser)","browserRequirements":"Requires JavaScript","inLanguage":["zh-CN","en"],"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":en_desc}]
body=f'''<div class="wrap"><h1>Pose, outfit and portrait references with prompts</h1><p class="lead">{E(en_desc)} Favourite and combine references, copy prompts for Stable Diffusion or Midjourney, or upload your own photo to try an outfit on.</p>
@@ -205,24 +205,24 @@ body=f'''<div class="wrap"><h1>Pose, outfit and portrait references with prompts
W('/en/',shell('en','/','PoseWear – Pose & Outfit Reference Library with AI Prompts and Online Try-On',en_desc,body,ENLD))
add('pages','/',TODAY)
# ---- 中文首页:标题、描述、真实数字、前 N 项静态卡片、JSON-LD、hreflang ----
-NA=sum(len(p['angles']) for p in poses.values());NA_PUB=sum(len(p['angles']) for p in SP)
-HC=dict(pose=len(poses),ang=NA,cos=len(cos),por=len(pors)) # 首页计数唯一来源;改公开数:HC=dict(pose=len(SP),ang=NA_PUB,cos=len(SC),por=len(SR))
-zh_desc=f"衣姿 PoseWear:{HC['pose']} 个姿势({HC['ang']} 张多角度图)、{HC['cos']} 套服装、{HC['por']} 张人像参考图,附中英文提示词,可上传照片在线 AI 试穿。免费,无需注册。"
+HC=dict(pose=len(SP),ang=NA_PUB,cos=len(SC),por=len(SR));HA=dict(pose=len(poses),ang=NA,cos=len(cos),por=len(pors)) # 首页计数唯一来源;改公开数:HC=dict(pose=len(SP),ang=NA_PUB,cos=len(SC),por=len(SR))
+zh_desc=f"衣姿 PoseWear:{HC['pose']} 组姿势({HC['ang']:,} 张角度图)、{HC['cos']:,} 套服装、{HC['por']:,} 张人像参考图,附中英文提示词,可上传照片在线 AI 试穿。免费,无需注册。"
zhttl='衣姿 PoseWear · 姿势、服装、人像参考图库 | 中英文提示词 + 在线 AI 试穿'
idx=open(f'{D}/index.html').read()
idx=re.sub(r'<title>.*?</title>',f'<title>{zhttl}</title>',idx,1)
idx=re.sub(r'<meta name="description" content="[^"]*">',f'<meta name="description" content="{E(zh_desc)}">',idx,1)
idx=re.sub(r'<meta property="og:title" content="[^"]*">','<meta property="og:title" content="衣姿 PoseWear:姿势、服装、人像参考图库">',idx,1)
idx=re.sub(r'<meta property="og:description" content="[^"]*">',f'<meta property="og:description" content="{E(zh_desc)}">',idx,1)
+idx=idx.replace('<meta name="twitter:card" content="summary_large_image">',f'<meta name="twitter:card" content="summary_large_image"><meta name="twitter:description" content="{E(zh_desc)}">',1)
idx=idx.replace('<link rel="canonical" href="https://posewear.pages.dev/">','<link rel="canonical" href="https://posewear.pages.dev/">'+alts('/'))
LD=[{"@type":"WebSite","@id":SITE+'/#website',"url":SITE+'/',"name":"衣姿 PoseWear","alternateName":["PoseWear","衣姿"],"inLanguage":"zh-CN","description":zh_desc,
"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":SITE+'/?t=costume&q={search_term_string}'},"query-input":"required name=search_term_string"}},
{"@type":"WebApplication","name":"衣姿 PoseWear","url":SITE+'/',"applicationCategory":"DesignApplication","operatingSystem":"Any (web browser)","browserRequirements":"Requires JavaScript","inLanguage":["zh-CN","en"],
"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"},"description":zh_desc,"image":SITE+'/og.png',"isAccessibleForFree":True,"featureList":["姿势参考图(多角度)","服装穿搭参考图","人像脸模参考(CC0)","中英文提示词","在线 AI 试穿"]}]
idx=idx.replace('</head>',f'<script type="application/ld+json">{json.dumps({"@context":"https://schema.org","@graph":LD},ensure_ascii=False,separators=(",",":"))}</script></head>',1)
-HOME_COUNTS=[('288',HC['pose']),('1439',HC['ang']),('1407',HC['cos'])]
-for a,b in HOME_COUNTS:
- idx=idx.replace(f'<b data-n="{a}">0</b>',f'<b data-n="{b}">{b:,}</b>')
+HOME_COUNTS=[('288','pose'),('1439','ang'),('1407','cos'),('1499','por')]
+for a,k in HOME_COUNTS:
+ idx=idx.replace(f'<b data-n="{a}">0</b>',f'<b data-n="{HC[k]}" data-na="{HA[k]}">{HC[k]:,}</b>')
def ssr(p):
t=p['zh'];a=p['angles'];return (f'<article class="card ssr"><div class="ph pose done"><a href="/pose/{p["id"]}/" class="ssl"><img class="ld" src="/{a[0]["t"]}" alt="{E(t)}" width="300" height="400" decoding="async"{"" if SP.index(p)<4 else " loading=\"lazy\""}></a><span class="badge">{p["no"]}</span></div>'
f'<div class="info"><h3><a href="/pose/{p["id"]}/">{E(t)}</a></h3><div class="sub">{E(p["cat"])} · {len(a)} 个角度</div><div class="tags"><span class="tag">{E(p["line"])}</span><span class="tag c">{E(p["cat"])}</span></div></div></article>')
diff --git a/src/app.js b/src/app.js
index 8aa4401..dac0415 100644
--- a/src/app.js
+++ b/src/app.js
@@ -157,13 +157,13 @@ addEventListener('keydown',e=>{if(e.ctrlKey||e.metaKey||e.altKey)return;const ae
else if(e.key=='Tab'){const f=[...$('#lb').querySelectorAll('button,a[href]')].filter(x=>x.offsetParent);if(!f.length)return;const a=f[0],z=f[f.length-1];if(e.shiftKey&&ae==a){e.preventDefault();z.focus()}else if(!e.shiftKey&&ae==z){e.preventDefault();a.focus()}}});
let tx,ty;$('.lb-img').addEventListener('touchstart',e=>{tx=e.touches[0].clientX;ty=e.touches[0].clientY},{passive:true});$('.lb-img').addEventListener('touchend',e=>{const d=e.changedTouches[0].clientX-tx,dy=e.changedTouches[0].clientY-ty;if(Math.abs(d)>50&&Math.abs(d)>Math.abs(dy))step(d<0?1:-1);else if(dy>90)lbClose()});
// 数字滚动
-function countUp(){$$('.stats b').forEach(b=>{const n=+b.dataset.n;if(RM||b.textContent.trim()!='0'){b.textContent=n;return}const t0=performance.now();const f=t=>{const p=Math.min((t-t0)/1400,1);b.textContent=Math.round(n*(1-Math.pow(1-p,4))).toLocaleString('zh-CN');p<1&&requestAnimationFrame(f)};requestAnimationFrame(f)})}
+function countUp(){$$('.stats b').forEach(b=>{const n=+(st.adult&&b.dataset.na||b.dataset.n);if(RM||b.textContent.trim()!='0'){b.textContent=n.toLocaleString('zh-CN');return}const t0=performance.now();const f=t=>{const p=Math.min((t-t0)/1400,1);b.textContent=Math.round(n*(1-Math.pow(1-p,4))).toLocaleString('zh-CN');p<1&&requestAnimationFrame(f)};requestAnimationFrame(f)})}
// 路由
function openById(id){let i=st.list.findIndex(x=>x.id==id);if(i>=0)return lbOpen(i);const it=(DATA[st.tab]||[]).find(x=>x.id==id);if(!it)return toast('未找到该条目');
if(!ok(it))return ageAsk(()=>openById(id));st.f={};st.q='';$('#q').value='';drawFilters();apply();i=st.list.findIndex(x=>x.id==id);if(i>=0)lbOpen(i)}
function route(){const [t,id]=location.hash.slice(1).split('/');const tab=TABS.includes(t)?t:'pose';if(!id&&tab==st.tab&&st.list.length)return;if(tab!=st.tab||!st.list.length||!id)setTab(tab,id&&decodeURIComponent(id));else openById(decodeURIComponent(id))}
// 成人内容开关
-function ageSet(on,anim){st.adult=on;SV('adult',on);if(on)SV('ageOk',true);document.body.classList.toggle('adult',on);$('#adultSw').setAttribute('aria-checked',on);$('#adultSw').title=on?'成人向内容已显示,点击关闭':'成人向内容已隐藏,点击打开';counts();if(st.tab&&st.tab!='studio'&&st.tab!=''){const f=()=>{drawFilters();apply()};anim?viewT(f):f()}window.WB&&WB.show&&st.tab=='studio'&&WB.show()}
+function ageSet(on,anim){st.adult=on;SV('adult',on);if(on)SV('ageOk',true);document.body.classList.toggle('adult',on);$('#adultSw').setAttribute('aria-checked',on);$('#adultSw').title=on?'成人向内容已显示,点击关闭':'成人向内容已隐藏,点击打开';counts();countUp();if(st.tab&&st.tab!='studio'&&st.tab!=''){const f=()=>{drawFilters();apply()};anim?viewT(f):f()}window.WB&&WB.show&&st.tab=='studio'&&WB.show()}
let ageCb=null;function ageAsk(cb){ageCb=cb||null;const seen=LS('ageOk');$('#ageT').textContent=cb?'这是成人向内容':'显示成人向内容?';$('#ageP').textContent=(cb?'要查看它,需要打开顶部的「18+」开关。':'包括双人互动、性感类姿势,以及内衣、性感类服装。')+(seen?'打开后随时可以再关上。':'仅适合已满 18 岁的用户。只需确认一次,之后用顶部开关随时打开或关闭。');$('#ageY').textContent=seen?'打开 18+ 开关':'我已满 18 岁,打开';$('#ageBox').hidden=false;setTimeout(()=>$('#ageY').focus(),30)}
$('#adultSw').onclick=()=>{if(st.adult){ageSet(false,1);toast('已关闭成人向内容')}else if(LS('ageOk')){ageSet(true,1);toast('已显示成人向内容')}else ageAsk()};
$('#ageY').onclick=()=>{$('#ageBox').hidden=true;ageSet(true,!ageCb);toast('已显示成人向内容,可用顶部开关关闭');const c=ageCb;ageCb=null;c&&c()};
diff --git a/src/index.html b/src/index.html
index f0b256f..aa30215 100644
--- a/src/index.html
+++ b/src/index.html
@@ -12,7 +12,7 @@
<div class="search"><svg class="sic" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><input id="q" type="search" placeholder="搜姿势、颜色、单品" autocomplete="off" aria-label="搜索"><button id="qx" class="qx" aria-label="清除搜索" hidden>✕</button></div><div class="tools"><button id="adultSw" class="asw" role="switch" aria-checked="false" aria-label="显示成人向内容(18+)" title="成人向内容,默认关闭"><span class="trk" aria-hidden="true"><span class="kn"></span></span><b>18+</b></button><div class="seg" role="group" aria-label="描述语言"><button data-lang="zh">中</button><button data-lang="en">EN</button></div><button id="help" class="icon" title="快捷键(?)" aria-label="快捷键帮助"><svg viewBox="0 0 24 24"><rect x="3" y="6" width="18" height="12" rx="2"/><path d="M7 10h.01M11 10h.01M15 10h.01M7 14h10"/></svg></button><button id="theme" class="icon" title="切换深浅色(T)" aria-label="切换深浅色"><svg class="sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg><svg class="moon" viewBox="0 0 24 24"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></button></div></header>
<section class="hero" id="hero"><div class="hero-in"><p class="eyebrow">画画、拍照、出图时用的参考</p><h1 id="heroT">姿势和服装<br>参考图</h1>
<div class="hero-r"><p class="lead" id="heroP">每个姿势有多个角度,每套服装都附中英文描述。可以收藏、组合,也能上传自己的照片试穿。</p>
-<div class="stats"><div><b data-n="288">0</b><span>姿势</span></div><div><b data-n="1439">0</b><span>角度图</span></div><div><b data-n="1407">0</b><span>套服装</span></div></div></div></div></section>
+<div class="stats"><div><b data-n="288">0</b><span>组姿势</span></div><div><b data-n="1439">0</b><span>张角度图</span></div><div><b data-n="1407">0</b><span>套服装</span></div><div><b data-n="1499">0</b><span>张人像</span></div></div></div></div></section>
<div id="intro" class="intro"><p><b>姿势、服装、人像参考图</b><span>画画、拍照、AI 出图时用。点开看大图和中英文描述,喜欢就收藏;也可以上传自己的照片试穿。</span></p><button class="sm" data-go="studio">去试穿</button><button id="introX" class="ix" aria-label="不再显示这条说明">✕</button></div>
<section class="bar" id="bar">
<div class="tbar"><span id="count" aria-live="polite"></span><button id="fBtn" class="fbtn"><svg viewBox="0 0 24 24"><path d="M4 6h16M7 12h10M10 18h4"/></svg>更多筛选<b id="fN"></b></button><div id="active"></div><button id="clearAll" class="ghost sm" hidden>清空全部</button><span class="sp"></span>