8 Commits (2622c55aff9433d425a62e5f6c379cf22a42139e)

Author SHA1 Message Date
Denys Smirnov 20447e9ec9
Fix alpha in PorterDuffImageComposite. (#3411)
There were two bugs in PorterDuffImageComposite.

The first one is the fact that it uses the mask input directly as alpha, missing the conversion (`1-a`). The fix is similar to c16f5744.

The second one is that all color composition formulas assume alpha premultiplied values, while the input is not premultiplied.

This change fixes both of these issue.
9 months ago
comfyanonymous c16f5744e3 Fix SplitImageWithAlpha and JoinImageWithAlpha. 1 year ago
comfyanonymous 0e763e880f JoinImageWithAlpha now works with any mask shape. 1 year ago
comfyanonymous 9212bea87c Change a few things in #1578. 1 year ago
MoonRide303 214ca7197e Corrected joining images with alpha (for RGBA input), and checking scaling conditions 1 year ago
MoonRide303 585fb0475b Adding default alpha when splitting RGB images 1 year ago
MoonRide303 ece69bf28c Change channel type to MASK (reduced redundancy, increased usability) 1 year ago
MoonRide303 d06cd2805d Added support for Porter-Duff image compositing 1 year ago