Update crop_card.py

This commit is contained in:
henriquenakashima 2023-07-01 00:49:22 -04:00
parent 52e0c8b6a4
commit e615ff0093

View file

@ -208,17 +208,6 @@ def main():
sheets_dir = BASE_DIR / 'sheets' sheets_dir = BASE_DIR / 'sheets'
sheets_dir.mkdir(parents=True, exist_ok=True) sheets_dir.mkdir(parents=True, exist_ok=True)
for i, cards_in_sheet in enumerate(util.batched(all_cropped_cards, sheet_layout.cards_per_sheet), 1): for i, cards_in_sheet in enumerate(util.batched(all_cropped_cards, sheet_layout.cards_per_sheet), 1):
# cards_in_sheet = [
# 'Svella, Ice Shaper (Extended Andrew Mar).crop.jpg',
# 'Icon of Ancestry.crop.png',
# 'Condescend.crop.png',
# 'Sulfur Falls (Cliff Childs).crop.png',
# 'Giant Killer.crop.png',
# 'Magda, Brazen Outlaw.crop.png',
# 'Rhox.crop.png',
# 'Visionary Augmenter.crop.png',
# ]
sheet_filepath = sheets_dir / f'sheet{i:03d}.jpg' sheet_filepath = sheets_dir / f'sheet{i:03d}.jpg'
create_sheet(cards_in_sheet, sheet_filepath, sheet_layout) create_sheet(cards_in_sheet, sheet_filepath, sheet_layout)
print(f'Output {sheet_filepath}') print(f'Output {sheet_filepath}')