Alexander Piskun
6732014a0a
convert nodes_compositing.py to V3 schema ( #10174 )
2025-10-08 23:13:15 -07:00
Chenlei Hu
0fd4e6c778
Lint unused import ( #5973 )
...
* Lint unused import
* nit
* Remove unused imports
* revert fix_torch import
* nit
2024-12-09 15:24:39 -05:00
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.
2024-06-04 16:37:11 -04:00
comfyanonymous
c16f5744e3
Fix SplitImageWithAlpha and JoinImageWithAlpha.
2023-10-08 15:52:10 -04:00
comfyanonymous
0e763e880f
JoinImageWithAlpha now works with any mask shape.
2023-10-04 15:54:34 -04:00
comfyanonymous
9212bea87c
Change a few things in #1578 .
2023-10-04 15:43:41 -04:00
MoonRide303
214ca7197e
Corrected joining images with alpha (for RGBA input), and checking scaling conditions
2023-10-04 19:04:52 +02:00
MoonRide303
585fb0475b
Adding default alpha when splitting RGB images
2023-10-04 19:04:52 +02:00
MoonRide303
ece69bf28c
Change channel type to MASK (reduced redundancy, increased usability)
2023-10-04 19:04:52 +02:00
MoonRide303
d06cd2805d
Added support for Porter-Duff image compositing
2023-10-04 19:04:48 +02:00