Skip to content

Transparent black and black aren't the same color #32

Closed

Description

@lucasmerlin

I noticed that if parts of an image change from black (#000000FF) to transparent black (#00000000) dify doesn't notice any difference.
I believe pixelmatch has a smiliar issue: mapbox/pixelmatch#26

Someone recently opened a PR to fix this problem: mapbox/pixelmatch#142
Could we implement the same fix in dify?

Activity

  1. jihchi commented on Nov 3, 2024

    @jihchi
    Owner

    Hi @lucasmerlin. Thank you for the reference links.

    Do you by any change have an example on hand that you can share with me so that I can reproduce and verify the issue?

  2. lucasmerlin commented on Nov 3, 2024

    @lucasmerlin
    ContributorAuthor

    Hi, sorry I should have provided the images from the start.
    Dify considers these two identical:

    a


    b

  3. jihchi commented on Nov 3, 2024

    @jihchi
    Owner

    Thank you @lucasmerlin ! I can reproduce the issue using the provided files. Let me investigate further.

  4. added
    bug
    on Oct 15, 2025
  5. jihchi commented on Jan 4, 2026

    @jihchi
    Owner

    The issue should be fixed in v0.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions