adobe_to_xyz = (0.57667, 0.18556, 0.18823, 0, 0.29734, 0.62736, 0.07529, 0,
    0.02703, 0.07069, 0.99134, 0)
xyz_to_srgb = (3.2406, -1.5372, -0.4986, 0, -0.9689, 1.8758, 0.0415, 0, 
    0.0557, -0.204, 1.057, 0)

def adobe_to_srgb(image):
    return image.convert('RGB', adobe_to_xyz).convert('RGB', xyz_to_srgb)

def is_adobe_rgb(image):
    return 'Adobe RGB' in image.info.get('icc_profile', '')
Convert JPG from AdobeRGB to sRGB using PIL?