Skip to content

💃 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

feat(web): share and item page in the library lightbox; one phone save path in common.js

wquguru1e8e068a38a7
diff --git a/web/app.css b/web/app.css
index cbea5f05..65c0f0a5 100644
--- a/web/app.css
+++ b/web/app.css
@@ -465,6 +465,12 @@ dialog::backdrop { background: rgba(38, 34, 30, 0.55); }
.pp-rel-t img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pp-rel-n { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pp-rel-n .mono { font-size: 12px; color: var(--ink4); }
+/* Library item pages (<lib>/<ID>/): the pose page's layout with the library's own tiles. Grey product shots and photos
+ fill a grey tile as on the library grid; animal line art multiplies on the paper tile like the poses. */
+.item-page .pp-tile, .item-page .pp-rel-t { background: var(--cos); }
+.item-page .pp-tile img, .item-page .pp-rel-t img { object-fit: cover; mix-blend-mode: normal; }
+.ip-line .pp-tile, .ip-line .pp-rel-t { background: var(--tile); }
+.ip-line .pp-tile img, .ip-line .pp-rel-t img { object-fit: contain; mix-blend-mode: multiply; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 18px; width: 100%; }
.foot-langs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink3); text-decoration: none; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }
diff --git a/web/app.js b/web/app.js
index e9cbf137..71a699aa 100644
--- a/web/app.js
+++ b/web/app.js
@@ -591,28 +591,9 @@
renderLb();
if (!$('lb').open) $('lb').showModal();
}
- /* Phones save to the photo album: <a download> lands in Files on iOS and in Downloads on Android, while the
- system share sheet with the file attached offers "Save Image", which goes to Photos. share() has to run inside
- the tap and an awaited fetch first loses the gesture on iOS, so the view on screen is fetched ahead of the tap.
- Browsers without file sharing (WeChat, older ones) get a long-press hint instead of a dead download. */
- const ALBUM = matchMedia('(pointer: coarse)').matches;
- const SHARE_FILES = ALBUM && !!navigator.canShare && (() => {
- try { return navigator.canShare({ files: [new File([''], 'a.webp', { type: 'image/webp' })] }); } catch (e) { return false; }
- })();
- const FILES = new Map();
- function prefetch(a) {
- if (a.href) prefetchFile(a.href, a.getAttribute('download'));
- }
- function prefetchFile(url, name) {
- if (!SHARE_FILES || FILES.has(url)) return Promise.resolve();
- 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 > 30) FILES.delete(FILES.keys().next().value);
- return fetch(url).then((r) => (r.ok ? r.blob() : Promise.reject(r.status)))
- .then((b) => { entry.file = new File([b], name, { type: 'image/webp' }); })
- .catch(() => FILES.delete(url));
- }
+ // Phones save to the photo album through the share sheet (common.js ShiseiAlbum, shared with the libraries).
+ const ALBUM = window.ShiseiAlbum.on, SHARE_FILES = window.ShiseiAlbum.canShare;
+ const prefetchFile = window.ShiseiAlbum.prefetch;
// 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;
@@ -631,20 +612,9 @@
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.
- navigator.share({ files: [entry.file] }).catch((err) => { if (err.name !== 'AbortError') lbTip(t().holdToSave); });
- } else if (SHARE_FILES) { prefetch(a); lbTip(t().preparing); }
- else lbTip(t().holdToSave);
+ const many = !!SAVE_SET && a.id === 'lbDl';
+ window.ShiseiAlbum.save(many ? SAVE_SET : [{ url: a.href, name: a.getAttribute('download') }],
+ (why) => lbTip(why === 'preparing' ? t().preparing : many ? t().holdMany : t().holdToSave));
}
function setDl(a, label, f, kind, p) {
a.querySelector('span').textContent = label;
diff --git a/web/changelog.yaml b/web/changelog.yaml
index 27cd9bfd..713d6fa7 100644
--- a/web/changelog.yaml
+++ b/web/changelog.yaml
@@ -4,6 +4,22 @@
# tag: new | improve | announce | removed. link: an in-site path without language prefix (/, /changelog/, /pose/P001/),
# optionally with ?query and #hash; the build prefixes the reader's language. Newest first.
entries:
+ - date: 2026-11-02
+ tag: improve
+ title: Share any costume, prop or scene
+ desc: Every library item now has its own page and share card. Open one and tap Share; the link preview shows the item from three views.
+ link: /costume/
+ cta: Try it on a costume
+ title_zh: 服装、道具、场景也能分享了
+ desc_zh: 每件素材都有自己的页面和分享卡片。打开大图点「分享」,链接预览会显示这件素材的三个视角。
+ cta_zh: 打开一件服装试试
+ title_ja: 衣装・小物・背景も共有できます
+ desc_ja: 素材ごとに専用ページと共有カードができました。拡大表示で「共有」を押すと、リンクのプレビューに 3 アングルが出ます。
+ cta_ja: 衣装で試す
+ title_ko: 의상·소품·배경도 공유할 수 있습니다
+ desc_ko: 소재마다 전용 페이지와 공유 카드가 생겼습니다. 크게 보기에서 「공유」를 누르면 링크 미리보기에 세 앵글이 나옵니다.
+ cta_ko: 의상으로 해 보기
+
- date: 2026-11-01
tag: new
title: Props, furniture, animals, scenes and light
diff --git a/web/common.js b/web/common.js
index c9a24427..7844784a 100644
--- a/web/common.js
+++ b/web/common.js
@@ -72,6 +72,41 @@
}
window.ShiseiShare = { open: open, copy: copy };
+ /* Phones save to the photo album: <a download> lands in Files on iOS and in Downloads on Android, while the
+ system share sheet with the file attached offers "Save Image", which goes to Photos. share() has to run inside
+ the tap and an awaited fetch first loses the gesture on iOS, so files are fetched ahead of the tap. Browsers
+ without file sharing (WeChat, older ones) get a long-press hint instead. One cache for the gallery lightbox, the
+ library lightbox and the tray, so a file one of them fetched is ready for the others. */
+ const ALBUM = matchMedia('(pointer: coarse)').matches;
+ const CAN_SHARE = ALBUM && !!navigator.canShare && (() => {
+ try { return navigator.canShare({ files: [new File([''], 'a.webp', { type: 'image/webp' })] }); } catch (e) { return false; }
+ })();
+ const FILES = new Map();
+ /** prefetch(url, name): fetch an image as a File for a later save(); resolves when done (or failed). */
+ function prefetch(url, name) {
+ if (!CAN_SHARE || !url) return Promise.resolve();
+ if (FILES.has(url)) return FILES.get(url).done;
+ 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 > 40) FILES.delete(FILES.keys().next().value);
+ entry.done = fetch(url).then((r) => (r.ok ? r.blob() : Promise.reject(r.status)))
+ .then((b) => { entry.file = new File([b], name, { type: 'image/webp' }); })
+ .catch(() => { FILES.delete(url); });
+ return entry.done;
+ }
+ /** save([{url, name}], hint): open the share sheet with the files if they are all fetched, else start fetching.
+ hint(why) gets 'preparing' (tap again in a moment), 'unsupported' (no file sharing: long-press) or 'failed'. */
+ function save(list, hint) {
+ if (!CAN_SHARE) { hint('unsupported'); return; }
+ const got = list.map((x) => FILES.get(x.url));
+ if (got.every((x) => x && x.file)) {
+ // Resolving only means the sheet closed, not that the image was saved, so success says nothing.
+ navigator.share({ files: got.map((x) => x.file) }).catch((err) => { if (err.name !== 'AbortError') hint('failed'); });
+ } else { list.forEach((x) => prefetch(x.url, x.name)); hint('preparing'); }
+ }
+ window.ShiseiAlbum = { on: ALBUM, canShare: CAN_SHARE, prefetch: prefetch, save: save };
+
document.addEventListener('click', (e) => {
const s = e.target.closest('[data-share]');
if (s) {
diff --git a/web/i18n.js b/web/i18n.js
index 79055fc1..46472968 100644
--- a/web/i18n.js
+++ b/web/i18n.js
@@ -249,6 +249,20 @@ window.I18N_PAGES = // BEGIN-JSON
"prevPose": "上一套", "nextPose": "下一套", "related": "同类姿势", "crumb": "面包屑导航", "skip": "跳到正文",
"posePage": "姿势详情页", "share": "分享", "shareTitle": "分享这套姿势", "shareSite": "分享 Shisei", "copyLink": "复制链接",
"shareText": "{name} · 5 个机位的姿势参考",
+ "libViews": {"front": "正面", "diag": "斜侧", "side": "侧面", "back": "背面", "above": "俯视", "below": "仰视", "eye": "平视"},
+ "itemTitle": "{name} · {lib}参考 {id} | Shisei",
+ "itemDesc": "{lib}素材「{name}」({cat}),{views}共 {n} 个视角。CC0 免费可商用,配上 Shisei 的姿势一起放进 Nano Banana、ComfyUI、Midjourney 等 AI 绘图工具。",
+ "itemOgAlt": "{id} {name}:{views}",
+ "itemShareTitle": "分享这个素材",
+ "itemShareText": "{name} · {lib}参考",
+ "itemPage": "条目页",
+ "openInLibrary": "在素材库中打开",
+ "viewsN": "{n} 个视角",
+ "viewsTitle": "全部视角",
+ "prevItem": "上一件",
+ "nextItem": "下一件",
+ "relatedItems": "同类素材", "itemDescLabel": "英文描述,可直接放进提示词",
+ "libOgLine": "{n} {unit}",
"nets": {"weibo": "微博", "x": "X", "pinterest": "Pinterest", "facebook": "Facebook"},
"clH1": "Shisei 有什么新内容",
"clLead": "新增的姿势、机位和画廊功能,最新的在前。每一条都能点进去直接看。",
@@ -279,6 +293,20 @@ window.I18N_PAGES = // BEGIN-JSON
"prevPose": "前のポーズ", "nextPose": "次のポーズ", "related": "同じカテゴリのポーズ", "crumb": "パンくずリスト", "skip": "本文へ移動",
"posePage": "ポーズのページ", "share": "共有", "shareTitle": "このポーズを共有", "shareSite": "Shisei を共有", "copyLink": "リンクをコピー",
"shareText": "{name} · 5 アングルのポーズ参考",
+ "libViews": {"front": "正面", "diag": "斜め", "side": "横", "back": "背面", "above": "上から", "below": "下から", "eye": "目線"},
+ "itemTitle": "{name} · {lib}リファレンス {id} | Shisei",
+ "itemDesc": "{lib}素材「{name}」({cat})。{views}の {n} アングル。CC0・無料。Shisei のポーズと組み合わせて Nano Banana・ComfyUI・Midjourney などの画像生成 AI に使えます。",
+ "itemOgAlt": "{id} {name}({views})",
+ "itemShareTitle": "この素材を共有",
+ "itemShareText": "{name} · {lib}リファレンス",
+ "itemPage": "詳細ページ",
+ "openInLibrary": "ライブラリで開く",
+ "viewsN": "{n} アングル",
+ "viewsTitle": "すべてのアングル",
+ "prevItem": "前へ",
+ "nextItem": "次へ",
+ "relatedItems": "同じカテゴリ", "itemDescLabel": "英語の説明(プロンプトにそのまま使えます)",
+ "libOgLine": "{n} {unit}",
"nets": {"x": "X", "line": "LINE", "pinterest": "Pinterest", "facebook": "Facebook"},
"clH1": "Shisei の新着",
"clLead": "追加したポーズ・アングル・ギャラリー機能を新しい順に。各項目からそのまま開けます。",
@@ -309,6 +337,20 @@ window.I18N_PAGES = // BEGIN-JSON
"prevPose": "Previous pose", "nextPose": "Next pose", "related": "More in this category", "crumb": "Breadcrumb", "skip": "Skip to content",
"posePage": "Pose page", "share": "Share", "shareTitle": "Share this pose", "shareSite": "Share Shisei", "copyLink": "Copy link",
"shareText": "{name} · pose reference in five angles",
+ "libViews": {"front": "Front", "diag": "3/4", "side": "Side", "back": "Back", "above": "Above", "below": "Below", "eye": "Eye level"},
+ "itemTitle": "{name} · {lib} reference {id} | Shisei",
+ "itemDesc": "{name} ({cat}) from the Shisei {lib} library, in {n} views ({views}). Free under CC0; pair it with a Shisei pose in Nano Banana, ComfyUI, Midjourney and other AI image tools.",
+ "itemOgAlt": "{id} {name}: {views}",
+ "itemShareTitle": "Share this item",
+ "itemShareText": "{name} · {lib} reference",
+ "itemPage": "Item page",
+ "openInLibrary": "Open in the library",
+ "viewsN": "{n} views",
+ "viewsTitle": "All views",
+ "prevItem": "Previous",
+ "nextItem": "Next",
+ "relatedItems": "More in this category", "itemDescLabel": "English description, ready for a prompt",
+ "libOgLine": "{n} {unit}",
"nets": {"x": "X", "pinterest": "Pinterest", "reddit": "Reddit", "facebook": "Facebook"},
"clH1": "What's new in Shisei",
"clLead": "New poses, angles and gallery features, newest first. Every entry links to the page where you can see it.",
@@ -339,6 +381,20 @@ window.I18N_PAGES = // BEGIN-JSON
"prevPose": "이전 포즈", "nextPose": "다음 포즈", "related": "같은 분류의 포즈", "crumb": "이동 경로", "skip": "본문으로 건너뛰기",
"posePage": "포즈 페이지", "share": "공유", "shareTitle": "이 포즈 공유", "shareSite": "Shisei 공유", "copyLink": "링크 복사",
"shareText": "{name} · 5개 앵글 포즈 참고",
+ "libViews": {"front": "정면", "diag": "사선", "side": "측면", "back": "뒷면", "above": "부감", "below": "앙각", "eye": "눈높이"},
+ "itemTitle": "{name} · {lib} 레퍼런스 {id} | Shisei",
+ "itemDesc": "{lib} 소재 「{name}」({cat}). {views} {n}개 앵글. CC0 무료. Shisei 포즈와 함께 Nano Banana, ComfyUI, Midjourney 등 AI 그림 도구에 쓸 수 있습니다.",
+ "itemOgAlt": "{id} {name}: {views}",
+ "itemShareTitle": "이 소재 공유",
+ "itemShareText": "{name} · {lib} 레퍼런스",
+ "itemPage": "상세 페이지",
+ "openInLibrary": "라이브러리에서 열기",
+ "viewsN": "{n}개 앵글",
+ "viewsTitle": "모든 앵글",
+ "prevItem": "이전",
+ "nextItem": "다음",
+ "relatedItems": "같은 분류", "itemDescLabel": "영어 설명 (프롬프트에 바로 사용)",
+ "libOgLine": "{n}{unit}",
"nets": {"x": "X", "facebook": "Facebook", "pinterest": "Pinterest", "line": "LINE"},
"clH1": "Shisei 새 소식",
"clLead": "새로 추가한 포즈, 앵글, 갤러리 기능을 최신순으로 정리했습니다. 각 항목에서 바로 열어 볼 수 있습니다.",
diff --git a/web/library.html b/web/library.html
index ce972f5c..9a015ea9 100644
--- a/web/library.html
+++ b/web/library.html
@@ -102,6 +102,10 @@ __NOSCRIPT__
<button type="button" class="circle" id="clbNextItem" data-i18n-aria="nextPose"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14m0 0-6-6m6 6 6-6"/></svg></button>
<a class="pill light" id="clbDl" download><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M12 4v11m0 0-4-4m4 4 4-4M5 20h14"/></svg><span id="clbDlText"></span></a>
</div>
+ <div class="clb-row clb-row2">
+ <button type="button" class="pill light" id="clbShare"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 15V3m0 0L7.5 7.5M12 3l4.5 4.5M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7"/></svg><span data-i18n="share"></span></button>
+ <a class="pill light" id="clbPage" data-i18n="itemPage"></a>
+ </div>
</div>
<div class="lb-desc clb-desc" id="clbDescBox">
<div class="lb-desc-h"><span id="clbDescLabel"></span><button type="button" class="pill light tiny" id="clbCopy" data-i18n="copy"></button></div>
diff --git a/web/library.js b/web/library.js
index bdf2bccf..b627ef14 100644
--- a/web/library.js
+++ b/web/library.js
@@ -182,19 +182,14 @@
/* lightbox */
const LB = { id: null, v: 0 };
- const ALBUM = matchMedia('(pointer: coarse)').matches;
- const SHARE = ALBUM && !!navigator.canShare && (() => {
- try { return navigator.canShare({ files: [new File([''], 'a.webp', { type: 'image/webp' })] }); } catch (e) { return false; }
- })();
- const FILES = new Map();
- function prefetch(url, name) {
- if (!SHARE || FILES.has(url)) return;
- const entry = { file: null };
- FILES.set(url, entry);
- if (FILES.size > 20) 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], name, { type: 'image/webp' }); }).catch(() => FILES.delete(url));
- }
+ // Phones save to the photo album through the share sheet, as in the gallery (common.js ShiseiAlbum).
+ const ALBUM = window.ShiseiAlbum.on;
+ const prefetch = window.ShiseiAlbum.prefetch;
+ // General-rated items have a page of their own with its own share card (tools/site_pages.py item_page); a shared
+ // link goes there, since link previews never see a #fragment. Suggestive items have no page (D-06), so their link
+ // is the library page with the item's hash: it opens the item, with the library's card.
+ const hasPage = (c) => !c.suggestive;
+ const itemPage = (c) => BASE + PREFIX[loc] + LIB + '/' + c.id + '/';
function lbList() { const l = pool(); return l.some((c) => c.id === LB.id) ? l : items; }
function openLb(id, v) {
const c = byId.get(id);
@@ -239,6 +234,10 @@
dl.removeAttribute('aria-disabled');
prefetch(dl.href, dl.getAttribute('download'));
} else { dl.removeAttribute('href'); dl.setAttribute('aria-disabled', 'true'); }
+ $('clbShare').disabled = veil;
+ const pg = $('clbPage');
+ pg.hidden = !hasPage(c);
+ if (hasPage(c)) pg.href = itemPage(c);
history.replaceState(null, '', location.pathname + location.search + '#' + c.id + '-' + VIEWS[LB.v]);
}
function stepView(d) {
@@ -267,10 +266,16 @@
const a = e.currentTarget;
if (!ALBUM || !a.href) return;
e.preventDefault();
- const entry = SHARE && FILES.get(a.href);
- if (entry && entry.file) navigator.share({ files: [entry.file] }).catch((err) => { if (err.name !== 'AbortError') toast(T.holdToSave); });
- else if (SHARE) { prefetch(a.href, a.getAttribute('download')); toast(T.preparing); }
- else toast(T.holdToSave);
+ window.ShiseiAlbum.save([{ url: a.href, name: a.getAttribute('download') }], (why) => toast(why === 'preparing' ? T.preparing : T.holdToSave));
+ });
+ $('clbShare').addEventListener('click', () => {
+ const c = byId.get(LB.id), f = c.v[LB.v] || c.v[c.m];
+ window.ShiseiShare.open({
+ url: hasPage(c) ? itemPage(c) : BASE + PREFIX[loc] + LIB + '/#' + c.id + '-' + VIEWS[LB.v],
+ heading: T.itemShareTitle,
+ text: T.itemShareText.replace('{name}', c.n[loc]).replace('{lib}', LN.name),
+ image: hasPage(c) ? new URL(img('w900', f), location.href).href : undefined
+ });
});
document.addEventListener('keydown', (e) => {
if (!$('clb').open) return;
diff --git a/web/tray.js b/web/tray.js
index d6619ef2..6f138a93 100644
--- a/web/tray.js
+++ b/web/tray.js
@@ -38,11 +38,8 @@
let state = store.get();
let open = false, adding = false;
let page = 'pose'; // the slot this page fills: 'pose' or a library key
- const ALBUM = matchMedia('(pointer: coarse)').matches;
- const SHARE = ALBUM && !!navigator.canShare && (() => {
- try { return navigator.canShare({ files: [new File([''], 'a.webp', { type: 'image/webp' })] }); } catch (e) { return false; }
- })();
- const files = new Map();
+ // Saving the set to the photo album goes through common.js (ShiseiAlbum), the same cache the lightboxes use.
+ const SHARE = window.ShiseiAlbum.canShare;
// A library's view for the pose's angle: the same angle when the library has it; scenes put the three level angles
// at eye level; anything else falls back to the front, then to the first view that exists.
@@ -150,13 +147,7 @@
}
// share() must run inside the tap, so the files are fetched as soon as the panel shows them.
- function prefetch(url, name) {
- if (files.has(url)) return;
- const entry = { file: null };
- files.set(url, entry);
- fetch(url).then((r) => (r.ok ? r.blob() : Promise.reject(r.status)))
- .then((b) => { entry.file = new File([b], name, { type: 'image/webp' }); }).catch(() => files.delete(url));
- }
+ const prefetch = window.ShiseiAlbum.prefetch;
function tip(msg) {
const t = document.getElementById('trayTip');
if (t) { t.textContent = msg; t.hidden = false; }
@@ -175,9 +166,8 @@
else if (a === 'end') { state = { items: {} }; open = adding = false; save(); }
else if (a === 'copy') window.ShiseiShare.copy(prompt());
else if (a === 'save') {
- const got = members().map((m) => files.get(m.src('w900')));
- if (got.every((x) => x && x.file)) navigator.share({ files: got.map((x) => x.file) }).catch((err) => { if (err.name !== 'AbortError') tip(TC.holdGroup); });
- else tip(T.preparing || TC.holdGroup);
+ window.ShiseiAlbum.save(members().map((m) => ({ url: m.src('w900'), name: m.file })),
+ (why) => tip(why === 'preparing' ? (T.preparing || TC.holdGroup) : TC.holdGroup));
}
});
// Escape folds the panel or the add list; a click outside the tray folds the add list.