The brightness module when selected displays a white screen in the image area instead of the image from the previous step or the selected image.

However the default view should be something like this

Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.
To learn how to write really great issues, which increases the chances they'll be resolved, see:
https://publiclab.org/wiki/developers#Contributing+for+non-coders
GitMate.io thinks the contributors most likely able to help are @jywarren, and @SidharthBansal.
Possibly related issues are https://github.com/publiclab/image-sequencer/issues/113 (Add a Brightness module), https://github.com/publiclab/image-sequencer/issues/472 (refactor/speed up Brightness module (and other PixelManipulation modules)), https://github.com/publiclab/image-sequencer/issues/434 (Rotate module), https://github.com/publiclab/image-sequencer/issues/108 (Math Module), and https://github.com/publiclab/image-sequencer/issues/112 (Scale module).
GitMate.io thinks the contributors most likely able to help are @jywarren, and @SidharthBansal.
Possibly related issues are https://github.com/publiclab/image-sequencer/issues/113 (Add a Brightness module), https://github.com/publiclab/image-sequencer/issues/472 (refactor/speed up Brightness module (and other PixelManipulation modules)), https://github.com/publiclab/image-sequencer/issues/434 (Rotate module), https://github.com/publiclab/image-sequencer/issues/108 (Math Module), and https://github.com/publiclab/image-sequencer/issues/112 (Scale module).
I'd like to work on this.. Can I please get help regarding the code links for the main image sequencer page and the brightness module .. Thanks
Our task here is to show the image in the brightness box right?
http://sequencer.publiclab.org/examples/#steps=
http://sequencer.publiclab.org/examples/#steps=brightness{brightness:100}
Go ahead!! π
yes basically the image coming from the previous step should be visible when brightness module is added.
yes basically the image coming from the previous step should be visible when brightness module is added.
Ok
http://sequencer.publiclab.org/examples/#steps=
http://sequencer.publiclab.org/examples/#steps=brightness{brightness:100}
Go ahead!!
Sorry if I wasn't clear.. I meant to ask for the code files which would be required here... I'm not so familiar with this repo...
http://sequencer.publiclab.org/examples/#steps=
http://sequencer.publiclab.org/examples/#steps=brightness{brightness:100}
Go ahead!!Sorry if I wasn't clear.. I meant to ask for the code files which would be required here... I'm not so familiar with this repo...
https://github.com/publiclab/image-sequencer/tree/main/src/modules/Brightness
I hope this works for you. This is basically the folder of this module.
@aashna27 Yes, Thanks
One more thing, I can see two instances of this issue on the GCI dash... Pls remove one as it leads to a lot of confusion..
@jywarren @sidharthbansal
Yes, @oorjitchowdhary , there are two instances of this on GCI. Should be removed asap to avoid confusion.
Yep there are still the two tasks available on the dashboard. @oorjitchowdhary are you still working on it?
@jonathanxu1 yes I'm working on it
@oorjitchowdhary you also seem to be working on issue #487 . Keep in mind that according to GCI, you can only work on one issue at a time
@JonathanXu1 Yeah I know.. my #487 got approved so I'll do this now...

@aashna27 I'm stuck here.. Through my changes in the code, it takes the load-image as the image in brightness but somehow doesn't show the file uphead... It is only visible after a change in the brightness .. Check out the gif which explains this..
@aashna27 I'm stuck here.. Through my changes in the code, it takes theload-imageas the image in brightness but somehow doesn't show the file uphead... It is only visible after a change in thebrightness.. Check out the gif which explains this..
I am busy with a submission today so if anyone from @publiclab/mentors could have a look till then.
Okay sure
@aashna27 Could you help me..
@aashna27 Could you help me..
Yeah sure. I ll look for the bug.
https://github.com/publiclab/image-sequencer/blob/main/src/modules/Convolution/Module.js
https://github.com/publiclab/image-sequencer/blob/main/src/modules/Brightness/Module.js
There is no difference between the modules of brightness and convolution apart from the different functions.. But still we can see the picture by using convolution whereas it doesn't show up in brightness
I'm unable to understand this..
@aashna27 @Paarmita
Anyone pls help.. I have my deadline today
Whatβs the problem, can you please elaborate? π
@tech4GT with no changes in the respective code modules.. The brightness module doesn't show the picture whereas the contrast, convolution.. All show the picture from the previous step...
I guess thatβs because the default value is set to 0 no?
Maybe make it 50?
@tech4GT I'm unable to change it through the brightness module
The default .. where do I change it?
It should be in the info.json file inside /src/modules/Brightness/, I
believe!
On Thu, Nov 29, 2018 at 11:19 AM Oorjit Chowdhary notifications@github.com
wrote:
The default .. where do I change it?
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/image-sequencer/issues/491#issuecomment-442894895,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ0oMOQcHuiT4Hj5lMA3JZxliqitvks5u0AjogaJpZM4Yv36a
.
It should be in the info.json file inside /src/modules/Brightness/, I believe!
If I edit it there, nothing happens.. It still shows brightness=100 in the default
Did you run grunt build after making the change? That will compile
everything in /src/ into the final /dist/ directory.
On Thu, Nov 29, 2018 at 11:35 AM Oorjit Chowdhary notifications@github.com
wrote:
It should be in the info.json file inside /src/modules/Brightness/, I
believe!If I edit it there, nothing happens.. It still shows brightness=100 in the
defaultβ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/image-sequencer/issues/491#issuecomment-442901612,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJx_4PEMyHYrszoHIarqpeX8zkemGks5u0AyfgaJpZM4Yv36a
.
Oh.. lemme check that out
ah, have you installed all modules with npm install? It looks like it's
missing a dependency. Great work sticking with this, you'll get it soon,
i'm sure!
On Thu, Nov 29, 2018 at 11:52 AM Oorjit Chowdhary notifications@github.com
wrote:
[image: screenshot 39]
https://user-images.githubusercontent.com/39333058/49237825-164e5600-f425-11e8-9fd4-e9cc7c47ffc9.png
Pls help me with this...β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/image-sequencer/issues/491#issuecomment-442908247,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ9CrLh-mFiJSU47CJ99dSSdaQAAbks5u0BCRgaJpZM4Yv36a
.
Youβll have to change it in Module.js file of the brightness module
https://github.com/publiclab/image-sequencer/blob/ddf4bd0dae5bb40e8144b2a10979e59dc12752ed/src/modules/Channel/Module.js#L6
This is how you can add that default value.
Something like
Options.brightness = options.brightness || 0
This is how you can add that default value.
Something likeOptions.brightness = options.brightness || 0
Yes I figured that out.. That doesn't work out too..
@tech4GT @jywarren @aashna27 As I see it, when the brightness module is added it doesn't take the input from the previous output until you change the brightness and click the save button... If you add the brightness module and then click on the image it simply downloads the blank white screen as the image.. But after you change the brightness, it takes the previous output as the input and then you could download the image showing the edited output..
I may not sound very clear.. I'll make a gif to demonstrate

Brightness module takes input as blank white screen on default...

The output of previous step is only taken as input when you change the brightness through the bar..
The output of previous step is only taken asinputwhen you change the brightness through the bar..
So when you download this one, it downloads the edited picture
Hmm I would have too look through this in code then, Iβll see this as soon as I get some time. π
So what should I do for my gci task. I have 12 hrs left..
Oh, sorry I did not know that, Iβll look through this in an hour or two then. Donβt worry weβll get this done. :)
Okay
@oorjitchowdhary This looks like a browser issue to me, this works fine in my browser!

@tech4GT so the issue is solved in your browser? That is umm.. Surprising π€
Confirmed this issue with chrome, safari.
@tech4GT @jywarren @aashna27 If it is a browser issue, then the code is working fine and any changes to it aren't required... Right?
So, I believe, I should submit my task for review π€
This isn't a browser issue. I figured out what is going wrong
Try console.log the value of val by adding this code console.log(val) after var val = (options.brightness)/100.0 this line in Brightness module.js, you'll find the val variable is NaN and that's why there's a blank image is displaying.
So if you hardcode the value of val like give it 1.5 it'll work just as expected.
I wonder why it works on my computer though?
If you do a fresh build & run and then add the first step as brightness then only this issue will occur.
@bhavayAnand9 So i have to the rgb values to 1.5? and add that console.log?
@oorjitchowdhary No, not rgb values but val variable which is declared in line 23 in module.js. and this isn't a fix, instead just a way to help you figure out what is going wrong and where.
Uhh
So i remove (options.brightness)/100.0 and put it as 1.5
So i remove
(options.brightness)/100.0and put it as 1.5
Not working
I think this'll fix it.
Explanation:
val value is dependent on option.brightness which is a parameter to Brightness function. If you console log options.brightness you'll find it undefined, which I don't know why that is.
so adding this line options.brightness = options.brightness || 100; will set the option.brightness value to 100 only if it's undefined.
@oorjitchowdhary Here's what you need to do. Just add these two lines of code in starting of 'changePixel' function.
//If options.brightness is undefined, set it to 100 by default
options.brightness = options.brightness || 100;
GIve it a try and let me know If it worked.
@bhavayAnand9 Thanks a ton... Cheers π
This is how you can add that default value.
Something likeOptions.brightness = options.brightness || 0Yes I figured that out.. That doesn't work out too..
Wow.. I had tried that long ago.. but placed it in above the function changePixels π π
oh wow, so were you all able to figure this out? That's awesome!
On Fri, Nov 30, 2018 at 10:55 AM Oorjit Chowdhary notifications@github.com
wrote:
This is how you can add that default value.
Something likeOptions.brightness = options.brightness || 0
Yes I figured that out.. That doesn't work out too..
Wow.. I had tried that long ago.. but placed it in above the function
changePixels π πβ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/image-sequencer/issues/491#issuecomment-443247110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJyFBWl_Bu6tvfRH8amPvBHctVb8Kks5u0VTmgaJpZM4Yv36a
.
@jywarren yes.. TEAMWORK = OPEN SOURCE = π―π₯
Another thing.. There is duplicate of this same task.. It should be removed asap
Great! did this. π π π―
Most helpful comment
@jywarren yes.. TEAMWORK = OPEN SOURCE = π―π₯