Skip to content

pkg/imgdiff: possible false positives on differently sized images #13

@jba

Description

@jba

If image2 is larger than image1 but the overlap is identical, Diff will report that they are identical.
Either check that the sizes are equal at the top of Diff, or compute the bounds like this:

bounds := image1.Bounds().Union(image2.Bounds())

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