"""Create native assembly review crops without changing production images.""" 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-child-face': ('high/normal/finish-mask.png', (980, 800, 1450, 1320)), 'finish-mother-face': ('high/normal/finish-mask.png', (640, 450, 1260, 1080)), 'finish-hands': ('high/normal/finish-mask.png', (790, 1320, 1510, 1990)), 'finish-terrain': ('high/normal/finish-mask.png', (1470, 700, 1920, 1390)), 'finish-garments': ('high/normal/finish-mask.png', (180, 1460, 740, 2150)), } for label, (path, box) in boxes.items(): Image.open(ROOT / path).crop(box).save(ROOT / 'review' / ('assembly-' + label + '-native.png')) print('Native composition and finish review crops saved; no production images changed.')