BrushCue Example: Exposure Adjust¶

Open In Colab

You can use this tool online at https://www.brushcue.com/tools/exposure-adjust

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
steps_2 = brushcue.float_passthrough(-0.000000067055225)
float_power_3 = brushcue.float_pow(2.0, steps_2)
float_power_4 = brushcue.float_pow(2.0, steps_2)
float_power_5 = brushcue.float_pow(2.0, steps_2)
exposure_adjust_linear_transform_6 = brushcue.composition_linear_transform(input_image_1, float_power_3, 0.0, 0.0, 0.0, 0.0, float_power_4, 0.0, 0.0, 0.0, 0.0, float_power_5, 0.0, 0.0, 0.0, 0.0, 1.0)

ctx = brushcue.Context()
result = exposure_adjust_linear_transform_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]:
No description has been provided for this image