Skip to content

"Submitted object was not an image" when isImage = true?  #54

@chocochik92

Description

@chocochik92

I am really confused about this. When I have console.log(imagediff.isImage(chartImage)) it returns true, but this expect(image1).toImageDiffEqual(image2) returns an error saying "Submitted object was not an image". I also get an error when doing imagediff.equal(chartImage, image2) and that one says "Image or Canvas expected".

I'm using "imagediff": "^1.0.6", "canvas": "^1.2.7" and node v0.12.2, and I'm using a Mac. Can I get some help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions