Add script to fix incorrect sRGB profile error.
This commit is contained in:
parent
f49ef8559d
commit
792a940388
11
assets/srgb_profile_fix.py
Normal file
11
assets/srgb_profile_fix.py
Normal file
@ -0,0 +1,11 @@
|
||||
import os
|
||||
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!')
|
Loading…
Reference in New Issue
Block a user