def getRGBTupleFromImg(file_obj, coords=(0,0)):
    """ 
    Extract an #RRGGBB color string from given pixel coordinates
    in the given file-like object.
    """
    pil_img = Image.open(file_obj)
    pil_img = pil_img.convert('RGB')
    rgb = pil_img.getpixel(coords)
    return rgb
 
    Extract an #RRGGBB color string from given pixel coordinates
    in the given file-like object.
    
recipes/Python/266466_HTML_colors_tofrom_RGB_tuples/recipe-266466.py