From 792a940388b7599ebc08d29856767d3c109b7f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klupie=C4=87?= Date: Sun, 18 Apr 2021 19:21:13 +0200 Subject: [PATCH] Add script to fix incorrect sRGB profile error. --- assets/srgb_profile_fix.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 assets/srgb_profile_fix.py diff --git a/assets/srgb_profile_fix.py b/assets/srgb_profile_fix.py new file mode 100644 index 0000000..8869722 --- /dev/null +++ b/assets/srgb_profile_fix.py @@ -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!')