nikolaydymura / flutter_image_filters

MIT License
28 stars 13 forks source link

Multiple Configurations on a single image. #8

Closed sjayadeep closed 1 year ago

sjayadeep commented 1 year ago

final texture = await TextureSource.fromAsset('demo.jpeg'); final configuration = BrightnessShaderConfiguration(); configuration.brightness = 0.5; final image = await configuration.export(texture, texture.size);

How to update saturation or any other configuration on top of this?

nikolaydymura commented 1 year ago

In version 0.0.4 was added TextureSource.fromImage, it allows easily converting of the processed image back to TextureSource.

@sjayadeep You can find an example of usage

sjayadeep commented 1 year ago

Thanks. It would be great if it works with the ImageShaderPreview as well.

ImageShaderPreview( texture: image, configurations:[ brightnessConfiguration, contrastConfiguration, .... ]),

Something like this.

nikolaydymura commented 1 year ago

Try the 0.0.5 version. You can find PipelineImageShaderPreview and GroupShaderConfiguration