ComfyUI > Nodes > ComfyUI_KimNodes > 🍒JSON_Image_Compositor / JSON图像合成器

ComfyUI Node: 🍒JSON_Image_Compositor / JSON图像合成器

Class Name

JSON_Image_Compositor

Category
🍒 Kim-Nodes/🧩Icon Processing | 图标处理
Author
Kim (Account age: 2536days)
Extension
ComfyUI_KimNodes
Latest Updated
2025-09-22
Github Stars
0.05K

How to Install ComfyUI_KimNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_KimNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_KimNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🍒JSON_Image_Compositor / JSON图像合成器 Description

The JSON_Image_Compositor node converts JSON data into images, placing them via bounding box coordinates.

🍒JSON_Image_Compositor / JSON图像合成器:

The JSON_Image_Compositor is a powerful node designed to seamlessly integrate JSON data into a complete image. It is particularly useful for AI artists who work with the SeamlessTilingGenerator, as it allows for the direct conversion of JSON outputs into fully composed images. This node parses base64-encoded image data and coordinate information from JSON, accurately placing images on a canvas according to bounding box coordinates. It offers flexibility in canvas size, either automatically calculating dimensions or allowing for custom specifications. Additionally, users can customize the background color, making it a versatile tool for creating complex image compositions with ease.

🍒JSON_Image_Compositor / JSON图像合成器 Input Parameters:

json_data

The json_data parameter is a string input that contains the JSON data to be processed. This JSON should include base64-encoded image data and coordinate information necessary for placing images on the canvas. The accuracy and completeness of this data directly impact the final image composition, as it dictates how and where each image element is placed. There are no specific minimum or maximum values for this parameter, but it must be a valid JSON string that the node can parse and interpret correctly.

🍒JSON_Image_Compositor / JSON图像合成器 Output Parameters:

result_tensor

The result_tensor is a tensor output that represents the final composed image. This tensor is generated by converting the processed image data into a format suitable for further manipulation or display within the AI art pipeline. It is crucial for users who wish to integrate the composed image into subsequent processing steps or visualizations.

stats_text

The stats_text is a JSON-formatted string that provides statistical information about the image composition process. It includes details such as the total number of images processed, successful placements, canvas dimensions, and type and position statistics. This output is valuable for users who need insights into the composition process, allowing them to understand the efficiency and accuracy of the image placement.

🍒JSON_Image_Compositor / JSON图像合成器 Usage Tips:

  • Ensure that the json_data input is correctly formatted and contains all necessary image and coordinate information to avoid errors during processing.
  • Customize the canvas size and background color to suit your specific project needs, enhancing the visual appeal of the final composition.

🍒JSON_Image_Compositor / JSON图像合成器 Common Errors and Solutions:

❌ JSON解析错误

  • Explanation: This error occurs when the JSON data provided cannot be parsed, possibly due to syntax errors or incorrect formatting.
  • Solution: Verify that the JSON string is correctly formatted and contains valid data. Use a JSON validator to check for syntax errors before inputting the data into the node.

❌ 处理图像 {i+1} 时出错

  • Explanation: This error indicates an issue occurred while processing a specific image within the JSON data, potentially due to incorrect image data or coordinates.
  • Solution: Check the specific image data and coordinates in the JSON for errors. Ensure that the base64-encoded image data is complete and correctly formatted, and that the coordinates are within the expected range for the canvas size.

🍒JSON_Image_Compositor / JSON图像合成器 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_KimNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.