From ac53ca7e5a5c60ceb9d7790a632af8e4592abc0b Mon Sep 17 00:00:00 2001 From: VocalFan <45863583+VocalFan@users.noreply.github.com> Date: Sat, 25 May 2024 23:21:29 -0400 Subject: [PATCH] Stfu Pillow. --- psychtobase/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psychtobase/main.py b/psychtobase/main.py index 02165f2..dd442fd 100644 --- a/psychtobase/main.py +++ b/psychtobase/main.py @@ -226,6 +226,7 @@ def convert(psych_mod_folder, result_folder, options): destination = f'{result_folder}/{modFoldername}{bgCharacterAssets}{filename}' fileCopy(character, destination) # Woah, freeplay icons + logging.getLogger('PIL').setLevel(logging.INFO) with Image.open(character) as img: # Get the winning/normal half of icons normal_half = img.crop((0, 0, 150, 150)) @@ -234,6 +235,7 @@ def convert(psych_mod_folder, result_folder, options): pixel_name = filename[5:-4] + 'pixel' + filename[-4:] freeplay_destination = f'{result_folder}/{modFoldername}{freeplayDir}/{pixel_name}' pixel_img.save(freeplay_destination) + logging.info(f'Saving converted freeplay icon to {freeplay_destination}') except Exception as e: logging.error(f'Could not copy asset {character}: {e}') else: