from pathlib import Path


def getImagesFromPath(imgPath):
    """
    Get all image files from given path

    :param imgPath Path: Path to directory of images
    """
    imgFormats = [".gif", ".tif", ".tiff", ".jpg", ".jpeg", ".bmp", ".png", ".eps"]
    directoryPath = Path(imgPath)
    return [f.resolve() for f in directoryPath.iterdir() if f.suffix in imgFormats]