def print_all_metadata(fname):
    """ high level that prints all as long list """
    print("Filename   :", fname )
    print("Basename   :", os.path.basename(fname))
    print("Path       :", os.path.dirname(fname))
    print("Size       :", os.path.getsize(fname))
    img = Image.open(fname)
    # get the image's width and height in pixels
    width, height = img.size
    # get the largest dimension
    #max_dim = max(img.size)
    print("Width      :", width)
    print("Height     :", height)
    print("Format     :", img.format)
    print("palette    :", img.palette )
     
    print_stats(img)
    #print_exif_data(img)
    exif_data = get_exif_data(img)
    (lat, lon) = get_lat_lon(exif_data)
    print("GPS Lat    :", lat )
    print("GPS Long   :", lon )
def print_all_metadata ( fname ) : print ( "Filename   :" , fname ) print ( "Basename   :" , os . path . basename ( fname ) ) print ( "Path       :" , os . path . dirname ( fname ) ) print ( "Size       :" , os . path . getsize ( fname ) ) img = Image . open ( fname ) width , height = img . size print ( "Width      :" , width ) print ( "Height     :" , height ) print ( "Format     :" , img . format ) print ( "palette    :" , img . palette ) print_stats ( img ) exif_data = get_exif_data ( img ) ( lat , lon ) = get_lat_lon ( exif_data ) print ( "GPS Lat    :" , lat ) print ( "GPS Long   :" , lon )
high level that prints all as long list