Add 19 approved card packages and Timothy revision v03, storing permanent binary assets through Git LFS while keeping generated review images local. Enable harness file polling and verify unchanged used fonts when archiving a previous approved card whose shared font manifest pin has become stale. Preserve the original acceptance manifest and archival verification evidence. Validation: 42 production tests, 9 harness test suites, TypeScript type check, Vite production build, and integrity checks for all 20 card packages passed.
17 lines
933 B
Python
17 lines
933 B
Python
"""Create static assembly inspection crops without modifying production assets."""
|
|
from pathlib import Path
|
|
from PIL import Image
|
|
ROOT = Path(__file__).resolve().parent.parent
|
|
boxes = {
|
|
'title': ('high/normal/card.png', (120, 100, 1880, 290)),
|
|
'footer': ('high/normal/card.png', (120, 2200, 1880, 2690)),
|
|
'finish-face': ('high/normal/finish-mask.png', (780, 365, 1250, 930)),
|
|
'finish-veil-hand': ('high/normal/finish-mask.png', (1020, 860, 1370, 1300)),
|
|
'finish-bundle-hand': ('high/normal/finish-mask.png', (290, 1400, 720, 1740)),
|
|
'finish-terrain': ('high/normal/finish-mask.png', (1390, 640, 1930, 1940)),
|
|
'finish-garments': ('high/normal/finish-mask.png', (240, 930, 790, 2160)),
|
|
}
|
|
for label, (path, box) in boxes.items():
|
|
Image.open(ROOT / path).crop(box).save(ROOT / 'review' / ('assembly-' + label + '-native.png'))
|
|
print('Static assembly inspection crops saved; production pixels untouched.')
|