Skip to content

Error: imgData is not defined  #301

Closed
@bhavikf

Description

@bhavikf

Hello,

I am trying to convert canvas to Image using HTML2Canvas and then add it to the report but it is ending up with an error as below on line

Error Message in Console:
imgData is not defined

Error at line 514
As per the code line contains the following if condition.

if (imgData.charCodeAt(0) === 0x89 &&

I have attached the file here that is generated by HTML2Canvas in png format.

I am not sure on this code part but possibly it seems that CharCodeAt(0) condition isnt getting validated for PNG file Format.

chartimage

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions