mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-18 13:07:28 +08:00
quick fix for alpha
This commit is contained in:
parent
1e8fc2f1a8
commit
5cca14c798
@ -1108,7 +1108,7 @@ class SaveImageAdvanced(IO.ComfyNode):
|
||||
|
||||
is_planar = av_fmt.startswith('gbrp') or 'p' in av_fmt.split('rgba')[-1]
|
||||
if is_planar:
|
||||
if av_fmt.startswith('gbrp'):
|
||||
if av_fmt.startswith('gbr'):
|
||||
img_np = img_np[:, :, [1, 2, 0, 3]] if has_alpha else img_np[:, :, [1, 2, 0]]
|
||||
img_np = img_np.transpose(2, 0, 1)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user