AI-Project/assets/srgb_profile_fix.py

13 lines
224 B
Python
Raw Normal View History

import os
2021-05-10 13:06:29 +02:00
import pygame as pg
for i in os.listdir('.'):
try:
img = pg.image.load(i)
pg.image.save(img, i)
except:
print("Failed to fix image " + i)
print('Success. All images were fixed!')