def image_resize(file_paths, new_dir, width, height):
    '''Resizes all images with given paths to new dimensions.
        Uses up/downscaling with antialiasing.

    Parameters
    ----------
    file_paths : List[str]
        List of path strings for image to resize.
    new_dir : str
        Directory to place resized images.
    width : int
        Target width of new resized images.
    height : int
        Target height of new resized images.
    '''
    if new_dir[-1] != '/':
        new_dir += '/'

    if not os.path.exists(os.path.dirname(new_dir)):
        os.makedirs(os.path.dirname(new_dir))

    for f in tqdm.tqdm(file_paths):
        img = Image.open(f).resize((width, height), Image.ANTIALIAS).convert('RGB')
        new = os.path.join(new_dir, os.path.basename(f))
        img.save(new)