2021-04-18 19:21:13 +02:00
|
|
|
import os
|
2021-05-10 13:06:29 +02:00
|
|
|
|
2021-04-18 19:21:13 +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!')
|