💃 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(tools): build, verify and serve a w600 tier in every srcset
wquguru0186eec28fb9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 66669ad0..82c54aec 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,8 @@ the catalog schema.「线稿与实拍对照」 section. The grid keeps two modes.### Changed+- A third image tier, `w600` (600 × 800, ~17 KB), feeds the grid on high-density screens, which used to fetch w900:+ about 40% fewer bytes per grid image. The repository grows to about 56 MB.- Repeat visits load faster: scripts and styles are cached for a year under a content-hash `?v=`, images for aweek with background revalidation (`site/_headers` for Cloudflare Pages). The hero marquee loads at low priority.- Images and the project's own data are now CC0 1.0 (`LICENSE-images`); code and docs stay Apache-2.0. Every zip shipsdiff --git a/tools/build_images.py b/tools/build_images.pyindex 5cb64101..5f625623 100755--- a/tools/build_images.py+++ b/tools/build_images.py@@ -1,15 +1,16 @@#!/usr/bin/env python3-"""Build the committed image tiers (w300, w900) for every view that passed QC, and prune everything else.+"""Build the committed image tiers (w300, w600, w900) for every view that passed QC, and prune everything else.Usage: python3 tools/build_images.py std=~/Downloads/pose-gallery-std73 sexy=... upper=...Line art comes from <src>/img/<file>, photos from <src>/photo/<file>. Only catalog views (non-null) and catalogphotos are built; any other file under images/ is deleted, so a view that fails QC leaves the repo.-Re-encoding is downscale-only from already-lossy sources: w900 q75 (lightbox/download), w300 q70 (grid).+Re-encoding is downscale-only from already-lossy sources: w900 q75 (lightbox/download),+w600 q72 (grid on 2x and 3x screens), w300 q70 (grid on 1x screens, thumbnails)."""import json, pathlib, subprocess, sysROOT = pathlib.Path(__file__).resolve().parent.parent-TIERS = (("w900", 900, 75), ("w300", 300, 70))+TIERS = (("w900", 900, 75), ("w600", 600, 72), ("w300", 300, 70))def main() -> None:diff --git a/tools/build_site.py b/tools/build_site.pyindex c35d0c4c..f455adb0 100755--- a/tools/build_site.py+++ b/tools/build_site.py@@ -312,7 +312,7 @@ def main() -> None:elif args.public:for kind, key in (("line", "views"), ("photo", "photos")):files = {f for p in catalog for f in (p.get(key) or {}).values() if f}- for tier in ("w300", "w900"):+ for tier in ("w300", "w600", "w900"):(out / "images" / kind / tier).mkdir(parents=True)for f in sorted(files):shutil.copy2(ROOT / "images" / kind / tier / f, out / "images" / kind / tier / f)diff --git a/tools/site_pages.py b/tools/site_pages.pyindex 453c1e2f..2da606a6 100644--- a/tools/site_pages.py+++ b/tools/site_pages.py@@ -209,7 +209,7 @@ class Site:eager = ' fetchpriority="high"' if f == first else ' loading="lazy"'figs.append(f'<figure class="pp-view"><a class="pp-tile" href="{home}#{p["id"]}-{VIEWS[k]}">'- f'<img src="{img("w900", f)}" srcset="{img("w300", f)} 300w, {img("w900", f)} 900w" sizes="(max-width: 720px) 50vw, 280px" '+ f'<img src="{img("w900", f)}" srcset="{img("w300", f)} 300w, {img("w600", f)} 600w, {img("w900", f)} 900w" sizes="(max-width: 720px) 50vw, 280px" 'f'width="900" height="1200" alt="{esc(p["id"] + " " + name + " · " + v)}"{eager} decoding="async"></a>'f'<figcaption><span>{esc(v)}</span><a href="{img("w900", f)}" download="shisei_{p["id"]}_{VIEWS[k]}.webp">'f'{esc(T["downloadView"])}</a></figcaption></figure>')@@ -226,9 +226,9 @@ class Site:alt = esc(p["id"] + " " + name + " · " + v)pairs.append(f'<figure class="pp-pair"><div class="pp-pair-imgs">'- f'<a class="pp-pair-line" href="{home}#{p["id"]}-{VIEWS[k]}-compare"><img src="{img("w900", lf)}" srcset="{img("w300", lf)} 300w, {img("w900", lf)} 900w" '+ f'<a class="pp-pair-line" href="{home}#{p["id"]}-{VIEWS[k]}-compare"><img src="{img("w900", lf)}" srcset="{img("w300", lf)} 300w, {img("w600", lf)} 600w, {img("w900", lf)} 900w" 'f'sizes="(max-width: 720px) 50vw, 300px" width="900" height="1200" alt="{alt} · {esc(T["lineArt"])}" loading="lazy" decoding="async"></a>'- f'<a class="pp-pair-photo" href="{home}#{p["id"]}-{VIEWS[k]}-compare"><img src="{pimg("w900", pf)}" srcset="{pimg("w300", pf)} 300w, {pimg("w900", pf)} 900w" '+ f'<a class="pp-pair-photo" href="{home}#{p["id"]}-{VIEWS[k]}-compare"><img src="{pimg("w900", pf)}" srcset="{pimg("w300", pf)} 300w, {pimg("w600", pf)} 600w, {pimg("w900", pf)} 900w" 'f'sizes="(max-width: 720px) 34vw, 200px" width="900" height="1800" alt="{alt} · {esc(T["photo"])}" loading="lazy" decoding="async"></a></div>'f'<figcaption><span>{esc(v)}</span><span class="pp-pair-dl">'f'<a href="{img("w900", lf)}" download="shisei_{p["id"]}_{VIEWS[k]}.webp">{esc(T["lineArt"])} 900</a>'diff --git a/tools/verify.py b/tools/verify.pyindex 022704d5..7abe1324 100755--- a/tools/verify.py+++ b/tools/verify.py@@ -10,7 +10,7 @@ import json, pathlib, sysROOT = pathlib.Path(__file__).resolve().parent.parentVIEWS = ("front", "diag", "side", "above", "below")-TIERS = ("w300", "w900")+TIERS = ("w300", "w600", "w900")def main() -> int:diff --git a/web/app.js b/web/app.jsindex ce1dd72b..597fedfd 100644--- a/web/app.js+++ b/web/app.js@@ -76,7 +76,7 @@const esc = (s) => String(s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));const nameOf = (p) => p['name_' + t().suffix];const src = (kind, tier, file) => BASE + 'images/' + kind + '/' + tier + '/' + file;- const srcset = (kind, file) => src(kind, 'w300', file) + ' 300w, ' + src(kind, 'w900', file) + ' 900w';+ const srcset = (kind, file) => src(kind, 'w300', file) + ' 300w, ' + src(kind, 'w600', file) + ' 600w, ' + src(kind, 'w900', file) + ' 900w';const files = (p, photo) => (photo ? p.photo : p.line);const catLabel = (p) => (p.series === 'std' ? t().cats[p.ci] : p['class_' + t().suffix]);// What the reader may see at all: rating first, then the series tab.