Skip to content

Image colors washed out after saving with MaskEditor | Image Canvas #7781

@MetaZuo

Description

@MetaZuo

Prerequisites

  • I am running the latest version of ComfyUI
  • I have searched existing issues to make sure this isn't a duplicate
  • I have tested with all custom nodes disabled (see how)

What happened?

A single saving in MaskEditor | Image Canvas causes the image colors to be washed out / desaturated. No other operation (like painting) is needed to reproduce. This bug seriously damages inpainting.
Not related to browser, go into ComfyUI/input/clipspace and you notice the color difference in Windows photo viewer. This single saving creates 4 files:

clipspace-paint-1766934508449.png
clipspace-mask-1766934508449.png
clipspace-painted-1766934508449.png
clipspace-painted-masked-1766934508449.png

the first one is a completely black image, the second one has correct colors, and other two have washed out colors. Unfortunately the node seems to use the fourth one.

Happens with either Nodes 2.0 on or off. Latest fresh ComfyUI windows portable release (0.6.0) without custom nodes; latest frontend release (1.36.12).

Example
before (example.png in ComfyUI/input):
before
after
after

Steps to Reproduce

  1. Create a Load Image node and load any image, e.g. example.png in the input folder.
  2. Right click on the image and "Open Image", for later comparison.
  3. Right click on the image and "Open in MaskEditor | Image Canvas".
  4. Click "Save".
  5. Right click on the saved image and "Open Image".
  6. Compare the colors.

How is this affecting you?

Feature doesn't work as expected

ComfyUI Frontend Version

1.36.12

Browser

Firefox

Console Errors

Logs

Additional Context

No response

┆Issue is synchronized with this Notion page by Unito

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions