Files
MajoorWaldi-ComfyUI-Majoor-…/js/preview/shared/imageops-metadata.js
T
Ewald 9eef24e275 feat(imageops): add Crop Stitch node and improve crop functionality
- Add ImageOpsCropStitch node for cropping and stitching images
- Update ImageOpsCrop node to include a crop mask output
- Implement crop region mask generation for improved cropping functionality
- Update related metadata and widget configuration for new and updated nodes
2026-06-10 12:01:27 +02:00

141 lines
2.4 KiB
JavaScript

const IMAGEOPS_NODE_METADATA = [
{
"className": "ImageOpsColorAjust",
"ui": "custom",
"minPreviewHeight": 490
},
{
"className": "ImageOpsBlur",
"ui": "native"
},
{
"className": "ImageOpsCameraShake",
"ui": "native"
},
{
"className": "ImageOpsChannel",
"ui": "native"
},
{
"className": "ImageOpsCornerPin",
"ui": "native"
},
{
"className": "ImageOpsComp",
"ui": "custom",
"minPreviewHeight": 400
},
{
"className": "ImageOpsConstant",
"ui": "custom",
"minPreviewHeight": 390
},
{
"className": "ImageOpsCrop",
"ui": "custom"
},
{
"className": "ImageOpsCropStitch",
"ui": "native"
},
{
"className": "ImageOpsDistort",
"ui": "native"
},
{
"className": "ImageOpsDraw",
"ui": "custom",
"minPreviewHeight": 220
},
{
"className": "ImageOpsFrameRange",
"ui": "custom",
"minPreviewHeight": 390
},
{
"className": "ImageOpsGrain",
"ui": "custom",
"minPreviewHeight": 390
},
{
"className": "ImageOpsTransform",
"ui": "native"
},
{
"className": "ImageOpsInvert",
"ui": "native"
},
{
"className": "ImageOpsAppend",
"ui": "custom",
"minPreviewHeight": 430
},
{
"className": "ImageOpsKeyer",
"ui": "custom",
"minPreviewHeight": 420
},
{
"className": "ImageOpsClamp",
"ui": "native"
},
{
"className": "ImageOpsMerge",
"ui": "native"
},
{
"className": "ImageOpsMaskConvert",
"ui": "native"
},
{
"className": "ImageOpsNoise",
"ui": "native"
},
{
"className": "ImageOpsPadOut",
"ui": "custom",
"minPreviewHeight": 430
},
{
"className": "ImageOpsPreview",
"ui": "custom",
"minPreviewHeight": 360
},
{
"className": "ImageOpsRamp",
"ui": "custom",
"minPreviewHeight": 430
},
{
"className": "ImageOpsSpherize",
"ui": "native"
},
{
"className": "ImageOpsText",
"ui": "custom",
"minPreviewHeight": 470
}
];
const IMAGEOPS_DEFAULT_PREVIEW_MIN_HEIGHT = 320;
const IMAGEOPS_DEFAULT_NODE_WIDTH = 360;
const IMAGEOPS_CLASS_ALIASES = /* @__PURE__ */ new Map([
[
"checker",
"ImageOpsConstant"
],
[
"checkerboard",
"ImageOpsConstant"
],
[
"radial",
"ImageOpsRamp"
]
]);
export {
IMAGEOPS_CLASS_ALIASES,
IMAGEOPS_DEFAULT_NODE_WIDTH,
IMAGEOPS_DEFAULT_PREVIEW_MIN_HEIGHT,
IMAGEOPS_NODE_METADATA
};