diff --git a/RGBA2RGB.py b/RGBA2RGB.py index 29baaaa1..1bf1224c 100644 --- a/RGBA2RGB.py +++ b/RGBA2RGB.py @@ -3,6 +3,9 @@ src = "./resizedData" dst = "./resized_black/" +if not os.path.exists(dst): + os.mkdir(dst) + for each in os.listdir(src): png = Image.open(os.path.join(src,each)) # print each