"""Create native assembly review crops without altering production outputs.""" from pathlib import Path import json 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", (610, 490, 1040, 1030)), "finish-hands": ("high/normal/finish-mask.png", (240, 960, 1040, 1840)), "finish-terrain": ("high/normal/finish-mask.png", (1020, 500, 1920, 1120)), "finish-water": ("high/normal/finish-mask.png", (1260, 1500, 1920, 2170)), } for label, (path, box) in boxes.items(): Image.open(ROOT / path).crop(box).save(ROOT / "review" / ("assembly-" + label + "-native.png")) print(json.dumps({"reviewCrops": list(boxes), "productionImagesChanged": False}))