quick fix for alpha

This commit is contained in:
Yousef Rafat 2026-04-29 15:07:35 +03:00
parent 1e8fc2f1a8
commit 5cca14c798

View File

@ -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)