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
composition_grayscale_2 = brushcue.composition_grayscale(input_image_1)
float_constant_3 = brushcue.float_constant(0.8999999761581421)
float_constant_4 = brushcue.float_constant(0.07999999821186066)
float_constant_5 = brushcue.float_constant(0.11999999731779099)
float_constant_6 = brushcue.float_constant(0.29999998211860657)
sepia_tone_7 = brushcue.composition_brightness_adjust(composition_grayscale_2, float_constant_3)
intensity_8 = brushcue.float_passthrough(float_constant_6)
float_multiply_9 = brushcue.float_multiply(float_constant_4, intensity_8)
float_multiply_10 = brushcue.float_multiply(float_constant_5, intensity_8)
vector_2_float_from_components_11 = brushcue.vector2f_from_components(float_multiply_9, float_multiply_10)
sepia_result_12 = brushcue.composition_chroma_offset(sepia_tone_7, vector_2_float_from_components_11)
ctx = brushcue.Context()
result = sepia_result_12.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]: