Skip to content

Would like to upstream some options: diffMask, drawAA #71

@zol

Description

@zol

We use pixelmatch at Chromatic and I've been maintaining our own fork with some extra functionality. I'd much prefer to upstream these changes and wanted to feel you out first to see whether you'd be open to merging them. They are backward compatible out of the box and come with tests. I believe they are aligned with pixelmatch's ethos of remaining small, fast and flexible.

The functionality is behind two new options:

  • diffMask - If true, output will be a mask rather than a complete image. false by default.
  • drawAA - If true, output will contain aaColor pixels for those detected as anti-aliased otherwise they won't be included in the diff output. true by default.

I can explain the reasoning behind needing these options in case it's unclear.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions