transpose error for exr

This commit is contained in:
Yousef Rafat 2026-04-29 22:36:01 +03:00
parent c77b36d98f
commit 7069f6a92f

View File

@ -1116,7 +1116,6 @@ class SaveImageAdvanced(IO.ComfyNode):
if is_planar:
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)
try:
frame = av.VideoFrame.from_ndarray(img_np, format=av_fmt)
@ -1194,7 +1193,6 @@ class ImagesExtension(ComfyExtension):
ImageScaleToMaxDimension,
SplitImageToTileList,
ImageMergeTileList,
SaveImageAdvanced
]