nikolaydymura / flutter_image_filters

MIT License
28 stars 13 forks source link

image importing by value chnages everytime #12

Closed yashanghan22 closed 1 year ago

yashanghan22 commented 1 year ago

image import every time

when i chnage value of any brightness,contrast,exposure,etc. it's importing image every time as i attached a ScreenShot of Debug Console so that effects can not apply smoothly. when i give only one configuration to my image it will work fine. GroupShaderConfig taking some time and re buid widget end then it's showing output. and it's blinking while changing values.

so what's the solution of this?

bh-jayadeep commented 1 year ago

Experiencing the same issue.

nikolaydymura commented 1 year ago

In the future version will be solution for some of the filters. @yashanghan22 @bh-jayadeep, can you list what filters you are using so I can say if this future fix will help you?

yashanghan22 commented 1 year ago

right now i am using brightness,contrast,exposure,saturation,hue but i wanna tell you that it only happens when groupshader is in used if you use only one filter using groupshader it will be same. so main problem is groupshader.

bh-jayadeep commented 1 year ago

GroupShaderConfiguration editConfig = GroupShaderConfiguration(); editConfig.add(BrightnessShaderConfiguration()..brightness = brightness); editConfig.add(ContrastShaderConfiguration()..contrast = contrast); editConfig.add(SaturationShaderConfiguration()..saturation = saturation); editConfig.add(GammaShaderConfiguration()..gamma = gamma); editConfig .add(WhiteBalanceShaderConfiguration()..temperature = whiteBalance);

nikolaydymura commented 1 year ago

@yashanghan22 @bh-jayadeep In version 0.0.6 was added new BunchShaderConfiguration class. You can find how to use it in GENERATE.md.