diff --git a/README.md b/README.md index d1f16d2..aca3a4c 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,10 @@ Nodes that have been migrated: [Migrated to Jovi_GLSL](https://github.com/Amorano/Jovi_GLSL) +**2025/06/07** @2.1.10: +* cleaned up image_convert for grayscale/mask +* updated to cozy_comfyui 0.0.35 + **2025/06/06** @2.1.10: * updated to comfy_cozy 0.0.34 * default width and height to 1 diff --git a/core/create.py b/core/create.py index d5bbf69..a61a1e2 100644 --- a/core/create.py +++ b/core/create.py @@ -108,13 +108,14 @@ Generate a constant image or mask of a specified size and color. It can be used h, w = pA.shape[:2] if mask is None: - mask = image_mask(pA) + mask = image_mask(pA, 255) else: mask = tensor_to_cv(mask, chan=1) - mask = image_scalefit(mask, w, h) + mask = image_scalefit(mask, w, h, matte=(0,0,0,255)) + mask = image_convert(mask, 1) pB = channel_solid(w, h, matte) - pA = image_blend(pB, pA, mask) + pA = image_blend(pB, pA, 255 - mask) pA = image_mask_add(pA, mask) if mode != EnumScaleMode.MATTE: diff --git a/pyproject.toml b/pyproject.toml index 06a8747..30772b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "jovimetrix" description = "Animation via tick. Parameter manipulation with wave generator. Unary and Binary math support. Value convert int/float/bool, VectorN and Image, Mask types. Shape mask generator. Stack images, do channel ops, split, merge and randomize arrays and batches. Load images & video from anywhere. Dynamic bus routing. Save output anywhere! Flatten, crop, transform; check colorblindness or linear interpolate values." -version = "2.1.10" +version = "2.1.11" license = { file = "LICENSE" } readme = "README.md" authors = [{ name = "Alexander G. Morano", email = "amorano@gmail.com" }]