BrushCue Example: Convert to sRGB¶
You can use this tool online at https://www.brushcue.com/tools/convert-to-srgb
In [ ]:
!pip install brushcue
In [1]:
import brushcue
from PIL import Image
import io
input_image_1 = brushcue.composition_monet_women_with_parasol() # insert your own image here
color_profile_srgb_2 = brushcue.color_profile_s_r_g_b()
color_convert_3 = brushcue.composition_color_convert(input_image_1, color_profile_srgb_2)
ctx = brushcue.Context()
result = color_convert_3.execute(ctx)
composition = result.as_composition()
data_bytes = composition.to_image_bytes(ctx)
img = Image.open(io.BytesIO(data_bytes))
img.thumbnail((400, 400)) # remove this line for full resolution
img
Out[1]: