I am using base64ImageToRGBMatrix function to get the pixel values of a base64 encoded string of an image.
I am referencing the function in a server side node script and i get the following error.
var img = new window.Image()
^
ReferenceError: window is not defined