Files
Yanchen 0f9e127162 feat: track remaining production assets, playtest scenes and references
Close the gaps left open after the LFS migration: 177 files that were
sitting untracked now enter version control, with every binary going
through Git LFS.

- labels: milk and orange-juice wrap artwork (SVG/PNG), Seedream sources,
  prompts and Dreamina job records
- orange juice 2L: bottle, cap, empty state and three label variants
  (blend + glb each)
- cup contents: desktop and mobile-optimised variants plus 3 textures
- milk 2L: empty and packaged variants with their glb exports
- milk frother: low-poly assembly and split base/jug parts
- tamper: model, glb and fit test
- juicer: seven assembly-part review scenes and their export scripts
- playtests: extraction animation scene and grinding/tamping whitebox
- reference: Minex page candidates, user review screenshots, sequence
  analysis frames and tamper STLs
- docs: item design draft, bean research notes, region reference and the
  model-asset audit report

Re-renderable preview/check frames stay untracked on purpose.
2026-11-22 10:26:53 +08:00

67 lines
3.8 KiB
Python

import base64
import subprocess
from pathlib import Path
OUT = Path(__file__).resolve().parent
image = base64.b64encode((OUT / "seedream55_meadow.png").read_bytes()).decode("ascii")
def side_icon(x):
return f'''<g transform="translate({x} 354)">
<path d="M0 -74 L43 -8 L30 40 L0 60 L-30 40 L-43 -8 Z" fill="#2d5b79"/>
<path d="M0 -74 L0 60 L-30 40 L-43 -8 Z" fill="#497f98"/>
<path d="M0 -42 L22 -5 L12 24 L-9 32 L-21 5 Z" fill="#f8f8ed"/>
<path d="M-12 72 L12 72" stroke="#7f9f8a" stroke-width="5" stroke-linecap="round"/>
</g>'''
scene_path = "M1250 224 Q1250 62 1412 62 L1762 62 Q1924 62 1924 224 L1924 662 L1250 662 Z"
parts = [f'''<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="3584" height="768" viewBox="0 0 3584 768">
<defs>
<linearGradient id="milkSky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#d4e7ef"/>
<stop offset="1" stop-color="#edf3ef"/>
</linearGradient>
<clipPath id="meadowTile"><path d="{scene_path}"/></clipPath>
</defs>
<rect width="3584" height="768" fill="#f6f6eb"/>
<path d="M0 0 L3584 0 L3584 92 C2860 144 2250 48 1630 114 C1020 170 560 80 0 136 Z" fill="url(#milkSky)"/>
<path d="M0 636 C640 590 1080 684 1630 640 C2240 590 2940 662 3584 606 L3584 684 L0 684 Z" fill="#e3ebde"/>
<path d="M0 692 C640 660 1160 720 1720 680 C2360 640 2940 712 3584 674 L3584 742 L0 742 Z" fill="#244f70"/>
<path d="M0 742 L3584 742" stroke="#7e9e88" stroke-width="10"/>
<path d="M0 758 L3584 758" stroke="#d4e7ef" stroke-width="5"/>
''']
for x in (0, 640, 2944, 3584):
parts.append(side_icon(x))
for x in (640, 2944):
parts.append(f'<text x="{x}" y="506" text-anchor="middle" font-family="Arial, sans-serif" font-size="27" font-weight="700" letter-spacing="5" fill="#244f70">MILK</text>')
parts.append(f'''
<path d="{scene_path}" fill="#d8e9ed" stroke="#244f70" stroke-width="7"/>
<image x="1250" y="62" width="674" height="600" preserveAspectRatio="xMidYMid slice" clip-path="url(#meadowTile)" xlink:href="data:image/png;base64,{image}"/>
<path d="{scene_path}" fill="none" stroke="#244f70" stroke-width="7"/>
<g transform="translate(80 0)">
<rect x="1798" y="150" width="412" height="484" rx="34" fill="#fbf8eb"/>
<path d="M1798 184 Q1798 150 1832 150 L1838 150 L1838 634 L1832 634 Q1798 634 1798 600 Z" fill="#2d5b79"/>
<path d="M1885 191 L1905 226 L1897 251 L1885 260 L1873 251 L1865 226 Z" fill="#7c9eaa"/>
<path d="M1885 191 L1885 260 L1873 251 L1865 226 Z" fill="#a9c2c7"/>
<text x="1870" y="342" font-family="Arial, sans-serif" font-size="80" font-weight="900" letter-spacing="3" fill="#244f70">MILK</text>
<path d="M1874 374 L2124 374" stroke="#9ab69b" stroke-width="4"/>
<rect x="1872" y="404" width="264" height="82" rx="41" fill="#2d5b79"/>
<text x="2004" y="460" text-anchor="middle" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="47" font-weight="600" letter-spacing="8" fill="#fbf8eb">牛奶</text>
<text x="1874" y="572" font-family="Arial, sans-serif" font-size="37" font-weight="700" letter-spacing="4" fill="#244f70">2 L</text>
<path d="M2072 548 L2122 548 L2122 598 L2072 598 Z" fill="#a8bda2"/>
<path d="M2080 586 L2096 564 L2114 586" fill="none" stroke="#fbf8eb" stroke-width="5" stroke-linejoin="round"/>
</g>
</svg>''')
svg = "\n".join(parts)
for banned in ("woolworths", "full cream", "100%"):
assert banned not in svg.lower()
(OUT / "milk_wrap.svg").write_text(svg, encoding="utf-8")
subprocess.run(["sips", "-s", "format", "png", str(OUT / "milk_wrap.svg"), "--out", str(OUT / "milk_wrap.png")], check=True)
subprocess.run([
"ffmpeg", "-hide_banner", "-loglevel", "error", "-y", "-i", str(OUT / "milk_wrap.png"),
"-vf", "crop=1376:768:1000:0", "-frames:v", "1", str(OUT / "milk_front.png"),
], check=True)
print(OUT / "milk_wrap.png")
print(OUT / "milk_front.png")