import os

import PIL

def iterateThroughImages(folderPath, minimumSize=(1920, 1080)):
    pass

if __name__ == '__main__':
    folderPath = None
    while True:
        folderPath = input('Type path to image folder: ')
        if os.path.isdir(folderPath):
            break
        else:
            print('You have to type existing path!')

    minImageSize = ()
    while len(minImageSize) != 2:
        inputSize = input('Minimum image size (1920x1080): ')
        inputSize = tuple(inputSize.split('x'))
        try:
            width = int(inputSize[0])
            height = int(inputSize[1])
            if width <= 0 or height <= 0:
                raise ValueError
            minImageSize = (width, height)
        except (IndexError, ValueError):
            print('You have to type valid size!')

    iterateThroughImages(folderPath, minImageSize)

@@ -24,76 +24,345 @@
 def 
-iterateThroughImages(folderPath, minimumSize=(1920, 1080)):%0A    pass
+createWorkingDirectories(folderPath):%0A    os.mkdir(os.path.join(folderPath, 'original'))%0A    os.mkdir(os.path.join(folderPath, 'resized'))%0A%0Adef iterateThroughImages(folderPath, minimumSize=(1920, 1080)):%0A    imageFiles = %5B%0A        image for image in os.listdir(folderPath)%0A        if os.path.isfile(os.path.join(folderPath, image))%0A    %5D
 %0A%0Aif
@@ -1068,24 +1068,301 @@
 id size!')%0A%0A
+    try:%0A        createWorkingDirectories(folderPath)%0A    except OSError:%0A        print('Folders %5C'original%5C' or %5C'resized%5C' already exists in given path.')%0A        shouldContinue = input('Should we continue (yes, no): ')%0A        if shouldContinue != 'yes':%0A            exit()%0A
     iterateT

Create working directories