BrushCue Example: Chroma Offset¶
You can use this tool online at https://www.brushcue.com/tools/chroma-offset
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
float_constant_2 = brushcue.float_constant(-1.862645149230957e-8)
float_constant_3 = brushcue.float_constant(-1.862645149230957e-8)
vector_2_float_from_components_4 = brushcue.vector2f_from_components(float_constant_2, float_constant_3)
offset_5 = brushcue.vector2f_passthrough(vector_2_float_from_components_4)
composition_chroma_offset_6 = brushcue.composition_chroma_offset(input_image_1, offset_5)
ctx = brushcue.Context()
result = composition_chroma_offset_6.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]: