"""Print Image Data.""" from os import environ from PIL import Image def main(): image_path = environ.get('IMAGE_PATH') image = Image.open(image_path) width, height = image.size print('\nImage Details:') print('=================') print('Path: ', image_path) print('Width: ', f'{width}px') print('Height:', f'{height}px') print('=================') if __name__ == '__main__': main()