"""Diagnostic crops only; never modifies illustration or printing exports.""" from pathlib import Path from PIL import Image root = Path(__file__).resolve().parent.parent items = [ ('high/normal/card.png', (0, 0, 2000, 370), 'assembly-title-native.png'), ('high/normal/card.png', (0, 2150, 2000, 2800), 'assembly-footer-native.png'), ('high/normal/finish-mask.png', (1120, 750, 1770, 1160), 'assembly-finish-face-native.png'), ('high/normal/finish-mask.png', (530, 1460, 1210, 1900), 'assembly-finish-handover-native.png'), ('high/normal/finish-mask.png', (1590, 880, 1940, 2160), 'assembly-finish-background-native.png'), ] for source, box, target in items: Image.open(root / source).crop(box).save(root / 'review' / target)