Skip to content

ReferenceError: window is not definedΒ #2

@karth2512

Description

@karth2512

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions