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(tools): add --public build with general line art only

wqugurub2a71b4ba84c
diff --git a/.gitignore b/.gitignore
index 9bb26b0b..444bbd2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/site/
# share-card render cache (tools/og_cards.py)
/build/
+/.wrangler/
diff --git a/tools/build_site.py b/tools/build_site.py
index 79aadc3d..e0fa49da 100755
--- a/tools/build_site.py
+++ b/tools/build_site.py
@@ -10,6 +10,8 @@ Usage: python3 tools/build_site.py [--site URL] [--repo URL] [--link-images] [--
the GitHub Pages address, see docs/DECISIONS.md D-05
--link-images symlink images/ instead of copying (fast local preview)
--no-og skip rendering share cards (no Chrome needed); og:image falls back to the pose's front line art
+--public the public deploy: general-rated line art of std and upper only; the sexy series, suggestive poses
+ and photo renders stay out of the catalog and their files are not copied (DECISIONS D-03, D-06)
"""
import argparse, datetime, json, os, pathlib, re, shutil, subprocess, sys
from html.parser import HTMLParser
@@ -177,6 +179,7 @@ def main() -> None:
ap.add_argument("--out", default="site")
ap.add_argument("--link-images", action="store_true")
ap.add_argument("--no-og", action="store_true")
+ ap.add_argument("--public", action="store_true")
args = ap.parse_args()
site_url = args.site.rstrip("/")
@@ -187,8 +190,14 @@ def main() -> None:
shutil.rmtree(out)
out.mkdir()
- catalog_text = (ROOT / "data/catalog.json").read_text()
- catalog = json.loads(catalog_text)
+ catalog = json.loads((ROOT / "data/catalog.json").read_text())
+ if args.public:
+ # Filtering the catalog is not enough on its own: every file under site/ is downloadable, so the images are
+ # copied from this list too.
+ if args.link_images:
+ sys.exit("--public copies only the public images; drop --link-images")
+ catalog = [dict(p, photos={}) for p in catalog
+ if p.get("series", "std") != "sexy" and p.get("rating", "general") == "general"]
# Pose pages, share cards and the sitemap cover the published std series only: other series are still being
# imported and reviewed, and a new series needs a human OK (AGENTS.md §8) before it gets indexable pages.
# Suggestive poses never get indexable pages or share cards; a pose with no usable view is hidden.
@@ -265,9 +274,15 @@ def main() -> None:
for f in (ROOT / "web").iterdir():
if f.is_file() and f.name not in ("index.html", "changelog.yaml"):
shutil.copy2(f, out / f.name)
- shutil.copy2(ROOT / "data/catalog.json", out / "catalog.json")
+ (out / "catalog.json").write_text(json.dumps(catalog, ensure_ascii=False, indent=1) + "\n")
if args.link_images:
(out / "images").symlink_to(ROOT / "images", target_is_directory=True)
+ elif args.public:
+ files = {f for p in catalog for f in p["views"].values() if f}
+ for tier in ("w300", "w900"):
+ (out / "images/line" / tier).mkdir(parents=True)
+ for f in sorted(files):
+ shutil.copy2(ROOT / "images/line" / tier / f, out / "images/line" / tier / f)
else:
shutil.copytree(ROOT / "images", out / "images", ignore=shutil.ignore_patterns("full"))
icons = [{"src": "favicon.svg", "sizes": "any", "type": "image/svg+xml"}]
@@ -297,7 +312,8 @@ def main() -> None:
bad = check_site(out, site_url)
if bad:
sys.exit("site check failed:\n " + "\n ".join(bad[:40]) + (f"\n … {len(bad) - 40} more" if len(bad) > 40 else ""))
- print(f"built {out.relative_to(ROOT)}/ v{ver} for {site_url}: {len(poses)} poses × {len(LOCS)} languages, "
+ print(f"built {out.relative_to(ROOT)}/ v{ver} for {site_url}{' (public)' if args.public else ''}: "
+ f"{len(catalog)} gallery poses, {len(poses)} pose pages × {len(LOCS)} languages, "
f"{len(entries)} changelog entries, {len(rows)} sitemap URLs")
diff --git a/web/app.js b/web/app.js
index 921905d0..c848940c 100644
--- a/web/app.js
+++ b/web/app.js
@@ -58,7 +58,7 @@
adult: (store.get('adult') ?? (SHOW_SUGGESTIVE_DEFAULT ? '1' : '0')) === '1',
newOnly: params.get('new') === '1',
angle: intParam('angle', 0, 4, -1),
- medium: params.get('src') === 'photo' ? 'photo' : 'line',
+ medium: params.get('src') === 'photo' && poses.some((p) => p.photo.some(Boolean)) ? 'photo' : 'line',
view: params.get('view') === 'single' ? 'single' : 'pose',
q: params.get('q') || '',
per: {}
@@ -172,6 +172,8 @@
$('series').setAttribute('aria-label', T.seriesLabel);
$('series').innerHTML = tabs.map(([k, n]) => '<button type="button" data-act="series:' + k + '" aria-pressed="' + (S.series === k) + '">' + esc(T.series[k]) + ' <span class="n">' + n + '</span></button>').join('');
const adult = $('adult');
+ // The public build ships no suggestive poses, so the toggle would switch nothing.
+ adult.hidden = !poses.some((p) => p.suggestive);
adult.setAttribute('aria-pressed', String(S.adult));
adult.title = T.adultHint;
adult.innerHTML = '<span class="dot" style="background:' + (S.adult ? 'var(--accent)' : 'var(--line)') + '"></span>' + esc(S.adult ? T.adultOn : T.adultOff);
@@ -193,11 +195,13 @@
}
function filterGroups() {
const T = t();
+ // The public build ships no photos; a switch to an empty mode is noise.
+ const anyPhoto = poses.some((p) => p.photo.some(Boolean));
return [
[T.angle, segHtml('angle', T.angle, [[T.angleAll, 'angle:-1', S.angle < 0]].concat(T.views.map((v, i) => [v, 'angle:' + i, S.angle === i])))],
- [T.medium, segHtml('medium', T.medium, [[T.line, 'medium:line', S.medium === 'line'], [T.photo + ' · ' + inSeries().filter((p) => p.photo.some(Boolean)).length, 'medium:photo', S.medium === 'photo']])],
+ anyPhoto && [T.medium, segHtml('medium', T.medium, [[T.line, 'medium:line', S.medium === 'line'], [T.photo + ' · ' + inSeries().filter((p) => p.photo.some(Boolean)).length, 'medium:photo', S.medium === 'photo']])],
[T.view, segHtml('view', T.view, [[T.byPose, 'view:pose', S.view === 'pose'], [T.single, 'view:single', S.view === 'single']])]
- ];
+ ].filter(Boolean);
}
function renderFilters() {
const groups = filterGroups();