Skip to main content
improve clarity
Source Link
ggorlen
  • 56.2k
  • 7
  • 109
  • 147

Image Dark/Light Detection Client Sided Scriptbrightness detection in client side script

Does anyone know if there is a script available to detect darkness/lightness in an image (htmlHTML included) using a client sided script?

I basically want to be able to detect the typebrightness of image (dark/light) used in the background and have CSS/HTML/JqueryjQuery/JS adapt the page based on a variable that is either dark ofor light (true ofor false).

I know there are server sided script-side scripts available but cannot use that for this particular development.

Thanks in advance project.

Image Dark/Light Detection Client Sided Script

Does anyone know if there is a script available to detect darkness/lightness in an image (html included) using a client sided script?

I basically want to be able to detect the type of image (dark/light) used in the background and have CSS/HTML/Jquery/JS adapt the page based on a variable that is either dark of light (true of false).

I know there are server sided script available but cannot use that for this particular development.

Thanks in advance.

Image brightness detection in client side script

Does anyone know if there is a script available to detect darkness/lightness in an image (HTML included) using a client sided script?

I basically want to be able to detect the brightness of image (dark/light) used in the background and have CSS/HTML/jQuery/JS adapt the page based on a variable that is either dark or light (true or false).

I know there are server-side scripts available but cannot use that for this particular development project.

Replace 'light' / 'dark' tags with more relevant 'canvas' tag
Link
lostsource
  • 21.8k
  • 9
  • 70
  • 89
Source Link
Redox
  • 993
  • 3
  • 13
  • 30

Image Dark/Light Detection Client Sided Script

Does anyone know if there is a script available to detect darkness/lightness in an image (html included) using a client sided script?

I basically want to be able to detect the type of image (dark/light) used in the background and have CSS/HTML/Jquery/JS adapt the page based on a variable that is either dark of light (true of false).

I know there are server sided script available but cannot use that for this particular development.

Thanks in advance.