Spaces:
Build error
Build error
| import os | |
| from PIL import Image | |
| char_dir = "static/characters" | |
| for f in os.listdir(char_dir): | |
| if f.endswith(".png"): | |
| path = os.path.join(char_dir, f) | |
| try: | |
| with Image.open(path) as img: | |
| print(f"{f}: {img.size}, mode: {img.mode}") | |
| except Exception as e: | |
| print(f"Error opening {f}: {e}") | |