The output of ImageReelComposit node is mandated to be even number

This commit is contained in:
chflame163
2026-08-18 13:13:45 +08:00
parent 953676c592
commit 557d882e18
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -195,6 +195,9 @@ class ImageReelComposit:
font_space = int(font_size * 1.5)
width = max(reel.image.width for reel in reels)
height = sum(reel.image.height + font_space + border for reel in reels)
# yuv420p encoders such as libx264 require even frame dimensions.
width += width % 2
height += height % 2
ret_image = Image.new('RGB', (width, height), color=bg_color)
paste_y = 0
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui_layerstyle"
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
version = "2.0.41"
version = "2.0.42"
license = {text = "MIT License"}
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "scikit_learn", "opencv-contrib-python", "pymatting", "timm", "colour-science", "transformers", "blend_modes", "huggingface_hub", "loguru"]