* cleaned up image_convert for grayscale/mask

* updated to cozy_comfyui 0.0.35
This commit is contained in:
Alexander G. Morano
2025-06-07 19:39:38 -04:00
parent 3ac86e664b
commit cda1974b02
3 changed files with 9 additions and 4 deletions
+4
View File
@@ -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
+4 -3
View File
@@ -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:
+1 -1
View File
@@ -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" }]