💃 Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) — 250+ poses × 5 angles in line art, names in ja/zh/en/ko
Python ai-artai-image-generationart-referencecc0comfyuicontrolnetdatasetdrawing-referencefigure-drawingline-artmannequinmidjourneymultilingualnano-bananapose-referencereference-imagesstable-diffusion
feat(web): phones save every format of an angle at once from the overview
wquguru023b88bb29b7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 736f13ba..58e891a9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,9 @@ the catalog schema.## [Unreleased]### Changed+- Phones: the overview's button is "Save this angle" and hands every format of the angle (up to five images) to+ the share sheet at once ("Save 5 Images" on iOS); an enlarged format saves just that image ("Save clay"). Browsers+ that cannot share files, such as WeChat, show "How to save" with a long-press hint. Desktop is unchanged.- The lightbox preloads what the next step needs once the shown images are in: the overview's other angles, anenlarged format's other angles and this angle's other formats, and the next pose's opening view. Low priority,skipped on Save-Data and 2G connections.diff --git a/docs/DESIGN.md b/docs/DESIGN.mdindex 9adde2e7..6cb48c91 100644--- a/docs/DESIGN.md+++ b/docs/DESIGN.md@@ -48,6 +48,9 @@格式说明收进「详情」,让图在首次打开时就有足够高度(之前要滑一下、地址栏收起才正常)。预加载:当前画面的图加载完后,低优先级预取下一步要用的图——总览预取其他四个机位的格子(w600),单张预取同格式的其他机位和这个机位的其他格式(w900),再加下一套的同一机位;省流量模式和 2G 不预取。换机位、换格式因此几乎没有等待。+ 手机保存(2026-11-01):总览的按钮叫「保存这个机位」,一次把这个机位的全部格式(线稿、白模、深度、法线、实拍,有几张算几张)交给系统分享面板,+ iOS 上是「存储 N 张图像」,一次进相册;文件在点之前就预取好(share() 必须在点击手势里调用),没取完时提示「正在准备」。放大单张时按钮是+ 「保存白模」这类,只存这一张。不能分享文件的浏览器(微信等)按钮叫「怎么保存?」,点了提示放大后长按保存。桌面不变:一次下载一个文件。- 手机:默认三列网格(只留 ID + 名称一行、不显示圆点),右侧按钮切回两列,选择记在 localStorage。没有筛选面板(2026-10-29 去掉):吸顶条里系列行随页面滚走,分类胶囊和机位 / 素材 / 视图开关留在顶部,各行横滑不换行。- 手机首屏:连导航一屏放下(标题 32px、滚动方块只留一行、胶囊缩小),首屏底部露出「全部姿势」。diff --git a/web/app.js b/web/app.jsindex 63713aa3..8040edd9 100644--- a/web/app.js+++ b/web/app.js@@ -556,15 +556,25 @@})();const FILES = new Map();function prefetch(a) {- if (!SHARE_FILES || !a.href || FILES.has(a.href)) return;- const url = a.href, entry = { file: null };+ if (a.href) prefetchFile(a.href, a.getAttribute('download'));+ }+ function prefetchFile(url, name) {+ if (!SHARE_FILES || FILES.has(url)) return;+ const entry = { file: null };FILES.set(url, entry);// About 60 KB each; keep the recent ones so stepping back and forth needs no refetch.- if (FILES.size > 24) FILES.delete(FILES.keys().next().value);+ if (FILES.size > 30) FILES.delete(FILES.keys().next().value);fetch(url).then((r) => (r.ok ? r.blob() : Promise.reject(r.status)))- .then((b) => { entry.file = new File([b], a.getAttribute('download'), { type: 'image/webp' }); })+ .then((b) => { entry.file = new File([b], name, { type: 'image/webp' }); }).catch(() => FILES.delete(url));}+ // The overview's save button on phones takes every format of the angle in one share sheet ("Save 5 Images" on+ // iOS). All files must already be fetched when the tap comes: share() has to run inside the gesture.+ let SAVE_SET = null;+ function angleFiles(p) {+ return ['line'].concat(MAP_KINDS, ['photo']).filter((k) => p[k] && p[k][LB.v])+ .map((k) => ({ url: src(k, 'w900', p[k][LB.v]), name: 'shisei_' + p.id + '_' + VIEWS[LB.v] + '_' + k + '.webp' }));+ }function lbTip(msg) {const el = $('lbTip');el.textContent = msg;@@ -576,6 +586,14 @@const a = e.currentTarget;if (!ALBUM || !a.href) return;e.preventDefault();+ if (SAVE_SET && a.id === 'lbDl') {+ if (!SHARE_FILES) return lbTip(t().holdMany);+ const got = SAVE_SET.map((x) => FILES.get(x.url));+ if (got.every((x) => x && x.file)) {+ navigator.share({ files: got.map((x) => x.file) }).catch((err) => { if (err.name !== 'AbortError') lbTip(t().holdMany); });+ } else { SAVE_SET.forEach((x) => prefetchFile(x.url, x.name)); lbTip(t().preparing); }+ return;+ }const entry = SHARE_FILES && FILES.get(a.href);if (entry && entry.file) {// Resolving only means the sheet closed, not that the image was saved, so success says nothing.@@ -728,8 +746,12 @@const dl2 = $('lbDl2');dl2.hidden = true;// The overview downloads the line art of the angle; every other format downloads from its own enlarged view.- if (compare) setDl($('lbDl'), ALBUM ? T.saveAlbum : T.download + ' · ' + T.line + ' 900×1200', p.line[LB.v], 'line', p);- else setDl($('lbDl'), ALBUM ? T.saveAlbum : T.download + ' · ' + (isMap(m) ? T[m] + ' ' : '') + (photo ? '900×1800' : '900×1200'), f, kind, p);+ // Phones: the overview saves every format of the angle at once (browsers that cannot share files get a hint+ // instead); an enlarged format saves that one image. Desktop downloads one file either way.+ SAVE_SET = ALBUM && compare && !veil ? angleFiles(p) : null;+ if (compare) setDl($('lbDl'), ALBUM ? (SHARE_FILES ? T.saveAngle : T.howSave) : T.download + ' · ' + T.line + ' 900×1200', p.line[LB.v], 'line', p);+ else setDl($('lbDl'), ALBUM ? T.saveFmt(T[kind]) : T.download + ' · ' + (isMap(m) ? T[m] + ' ' : '') + (photo ? '900×1800' : '900×1200'), f, kind, p);+ if (SAVE_SET) SAVE_SET.forEach((x) => prefetchFile(x.url, x.name));if (veil) [$('lbDl'), dl2].forEach((a) => { a.removeAttribute('href'); a.setAttribute('aria-disabled', 'true'); });else [$('lbDl'), dl2].forEach((a) => { if (!a.hidden) prefetch(a); });clearTimeout(lbTip.timer);diff --git a/web/i18n.js b/web/i18n.jsindex 37427d59..d64e522e 100644--- a/web/i18n.js+++ b/web/i18n.js@@ -21,7 +21,7 @@ window.I18N = {clay: '白模', depth: '深度', normal: '法线', overlay: '对照线稿',fmtNote: { clay: '灰色人台,带体积和明暗,和线稿一样可以直接当参考图。', depth: '深度图,白近黑远。给 ComfyUI 等的 ControlNet Depth 用,会带上人台的体型。', normal: '法线图,颜色表示表面朝向。给 ControlNet Normal 用,会带上人台的体型。' },gapLine: '正在补画', gapLineSub: '这个机位还在画,先看看别的吧', gapLineShort: '补画中',- gapPhoto: '暂无实拍', gapPhotoSub: '这个机位先看线稿吧', gapPhotoShort: '无实拍', gapMap: (f) => '暂无' + f, overview: '全部格式', allShort: '全部', overviewNote: '同一机位的全部格式,点一张放大。', gapOther: '先看看别的机位吧',+ gapPhoto: '暂无实拍', gapPhotoSub: '这个机位先看线稿吧', gapPhotoShort: '无实拍', gapMap: (f) => '暂无' + f, overview: '全部格式', allShort: '全部', saveAngle: '保存这个机位', howSave: '怎么保存?', saveFmt: (f) => '保存' + f, holdMany: '这个浏览器不能一次存多张。点一张放大,再长按图片选「保存图片」。', overviewNote: '同一机位的全部格式,点一张放大。', gapOther: '先看看别的机位吧',goView: (v) => '看' + v, goLine: '看线稿', goPhoto: '看实拍',empty: '没有找到匹配的姿势', cols2: '两列', cols3: '三列', prevPose: '上一套', nextPose: '下一套', details: '详情',close: '关闭', prevAngle: '上一个机位', nextAngle: '下一个机位', open: (id) => '打开 ' + id + ' 大图',@@ -57,7 +57,7 @@ window.I18N = {clay: 'クレイ', depth: '深度', normal: '法線', overlay: '線画と比較',fmtNote: { clay: 'グレーのマネキン。立体感と陰影があり、線画と同じく参照画像としてそのまま使えます。', depth: '深度マップ(白が手前、黒が奥)。ComfyUI などの ControlNet Depth 用。マネキンの体型も反映されます。', normal: '法線マップ(色で面の向きを表します)。ControlNet Normal 用。マネキンの体型も反映されます。' },gapLine: 'ただいま描き足し中', gapLineSub: 'ほかのアングルを先にどうぞ', gapLineShort: '描き足し中',- gapPhoto: '実写はまだありません', gapPhotoSub: 'このアングルは線画でどうぞ', gapPhotoShort: '実写なし', gapMap: (f) => f + 'はありません', overview: 'すべての形式', allShort: 'すべて', overviewNote: 'このアングルのすべての形式。タップで拡大します。', gapOther: 'ほかのアングルを先にどうぞ',+ gapPhoto: '実写はまだありません', gapPhotoSub: 'このアングルは線画でどうぞ', gapPhotoShort: '実写なし', gapMap: (f) => f + 'はありません', overview: 'すべての形式', allShort: 'すべて', saveAngle: 'このアングルを保存', howSave: '保存のしかた', saveFmt: (f) => f + 'を保存', holdMany: 'このブラウザではまとめて保存できません。画像をタップして拡大し、長押しで「写真に保存」を選んでください。', overviewNote: 'このアングルのすべての形式。タップで拡大します。', gapOther: 'ほかのアングルを先にどうぞ',goView: (v) => v + 'を見る', goLine: '線画を見る', goPhoto: '実写を見る',empty: '該当するポーズがありません', cols2: '2列', cols3: '3列', prevPose: '前のポーズ', nextPose: '次のポーズ', details: '詳細',close: '閉じる', prevAngle: '前のアングル', nextAngle: '次のアングル', open: (id) => id + ' を拡大表示',@@ -93,7 +93,7 @@ window.I18N = {clay: 'Clay', depth: 'Depth', normal: 'Normal', overlay: 'Line art',fmtNote: { clay: 'A grey mannequin with volume and shading; use it as a reference image just like the line art.', depth: 'Depth map, white is near. For ControlNet Depth in ComfyUI and similar tools; it carries the mannequin\'s build.', normal: 'Normal map, colour shows which way each surface faces. For ControlNet Normal; it carries the mannequin\'s build.' },gapLine: 'Still drawing this one', gapLineSub: 'Meanwhile, try another angle', gapLineShort: 'Drawing',- gapPhoto: 'No photo yet', gapPhotoSub: 'The line art has this angle', gapPhotoShort: 'No photo', gapMap: (f) => 'No ' + f.toLowerCase() + ' map', overview: 'All formats', allShort: 'All', overviewNote: 'Every format of this angle. Click one to enlarge it.', gapOther: 'Meanwhile, try another angle',+ gapPhoto: 'No photo yet', gapPhotoSub: 'The line art has this angle', gapPhotoShort: 'No photo', gapMap: (f) => 'No ' + f.toLowerCase() + ' map', overview: 'All formats', allShort: 'All', saveAngle: 'Save this angle', howSave: 'How to save', saveFmt: (f) => 'Save ' + f.toLowerCase(), holdMany: 'This browser can\'t save several images at once. Tap one to enlarge it, then press and hold it and choose Save Image.', overviewNote: 'Every format of this angle. Click one to enlarge it.', gapOther: 'Meanwhile, try another angle',goView: (v) => 'See ' + v, goLine: 'See line art', goPhoto: 'See photo',empty: 'No poses match', cols2: 'Two columns', cols3: 'Three columns', prevPose: 'Previous pose', nextPose: 'Next pose', details: 'Details',close: 'Close', prevAngle: 'Previous angle', nextAngle: 'Next angle', open: (id) => 'Open ' + id,@@ -129,7 +129,7 @@ window.I18N = {clay: '클레이', depth: '깊이', normal: '노멀', overlay: '선화 비교',fmtNote: { clay: '회색 마네킹으로 입체감과 명암이 있습니다. 선화처럼 참고 이미지로 바로 쓸 수 있습니다.', depth: '깊이 맵(흰색이 가까움). ComfyUI 등의 ControlNet Depth용이며 마네킹 체형이 반영됩니다.', normal: '노멀 맵(색이 표면 방향을 나타냄). ControlNet Normal용이며 마네킹 체형이 반영됩니다.' },gapLine: '지금 그리는 중이에요', gapLineSub: '먼저 다른 앵글을 보세요', gapLineShort: '그리는 중',- gapPhoto: '아직 실사가 없어요', gapPhotoSub: '이 앵글은 선화로 보세요', gapPhotoShort: '실사 없음', gapMap: (f) => f + ' 없음', overview: '모든 형식', allShort: '전체', overviewNote: '이 앵글의 모든 형식입니다. 눌러서 크게 보세요.', gapOther: '먼저 다른 앵글을 보세요',+ gapPhoto: '아직 실사가 없어요', gapPhotoSub: '이 앵글은 선화로 보세요', gapPhotoShort: '실사 없음', gapMap: (f) => f + ' 없음', overview: '모든 형식', allShort: '전체', saveAngle: '이 앵글 저장', howSave: '저장 방법', saveFmt: (f) => f + ' 저장', holdMany: '이 브라우저는 여러 장을 한 번에 저장할 수 없어요. 이미지를 눌러 크게 본 뒤 길게 눌러 "이미지 저장"을 고르세요.', overviewNote: '이 앵글의 모든 형식입니다. 눌러서 크게 보세요.', gapOther: '먼저 다른 앵글을 보세요',goView: (v) => v + ' 보기', goLine: '선화 보기', goPhoto: '실사 보기',empty: '일치하는 포즈가 없습니다', cols2: '2열', cols3: '3열', prevPose: '이전 포즈', nextPose: '다음 포즈', details: '상세',close: '닫기', prevAngle: '이전 앵글', nextAngle: '다음 앵글', open: (id) => id + ' 크게 보기',