Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/assets/arcb30_assets_maker/crop.py

11 lines
No EOL
302 B
Python

from PIL import Image
import os
path = os.path.abspath('./bluroutput')
files = os.listdir(path)
for file in files:
img = Image.open(os.path.abspath(f'{path}/{file}'))
img1 = img.resize((325, 325))
img2 = img1.crop((0,62,325,263))
img2.save(os.path.abspath(f'./assets/songimg/{file}'))