47 Commits
Author SHA1 Message Date
LEv145 acad7c4273 Merge pull request #15 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2026-09-17 22:14:18 +02:00
snomiao 25889e53e3 chore(publish): update GitHub Actions workflow for node publishing
- Add permissions for writing issues
- Update action version to v1 for publish-node-action
- Add condition to run job only for specific repository owner
2025-01-21 08:43:25 +00:00
LEv145 852db490ef Update license 2024-05-30 19:54:28 +02:00
LEv145 e258287ad7 Add .idea files 2024-05-30 19:50:25 +02:00
LEv145 38c9209a98 Update pyproject.toml for comfyCLI 2024-05-30 19:50:13 +02:00
LEv145 f17d5131ab Merge pull request #12 from haohaocreates/publish
Add Github Action for Publishing to Comfy Registry
2024-05-23 01:41:21 +02:00
LEv145 47b55961f2 Merge pull request #11 from haohaocreates/pyproject
Add pyproject.toml for Custom Node Registry
2024-05-23 01:41:09 +02:00
haohaocreates ed9a2868ff chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-05-22 13:54:49 -04:00
haohaocreates 70c9b30ebf chore(publish): Add Github Action for Publishing to Comfy Registry 2024-05-22 13:54:21 -04:00
LEv145 8115be4771 Merge pull request #10 from LEv145/dev
v 2.5.1
2024-02-23 01:10:21 +02:00
LEv145 6c93712961 v 2.5.1
Add support `\n` for column texts
2024-02-23 01:09:19 +02:00
LEv145 9591638263 Merge pull request #9 from kenjiqq/main
Fix padding calculation for column annotations with newlines
2024-02-23 01:04:18 +02:00
kenjiqq bb195b17e2 fix padding calculation for column annotations with newlines 2024-02-18 15:17:09 +01:00
LEv145 44365fa3ea Merge pull request #8 from LEv145/dev
v 2.5
2023-08-05 16:52:22 +02:00
LEv145 d6fc97799f Merge pull request #7 from Lightsockie/main
Allow Single-Axis Annotations
2023-08-05 16:45:37 +02:00
LEv145 8f439e074e Update logic 2023-08-05 16:37:39 +02:00
LEv145 fe2447ef6c Update logic 2023-08-05 16:35:35 +02:00
LEv145 d4e337eeb3 Move vars 2023-08-05 16:31:28 +02:00
LEv145 4548bf62a4 Update typing 2023-08-05 16:30:14 +02:00
LEv145 63ddd51d0b Update typing 2023-08-05 16:28:49 +02:00
lightsockie aefa323bab Allow Single-Axis Annotations 2023-08-04 15:04:52 -07:00
LEv145 f80fdb3a14 Merge pull request #5 from LEv145/dev
v 2.4
2023-04-23 17:02:11 +02:00
LEv145 ed05cffed4 v 2.4.0 2023-04-23 17:01:13 +02:00
LEv145 71d14ea040 v 2.3.3
Remove `COLUMNS_COUNT`, `ROWS_COUNT` for `GridAnnotationNode` output
2023-04-23 16:19:02 +02:00
LEv145 cfe6b34c87 v 2.3.2
Remove `COLUMNS_COUNT`, `ROWS_COUNT` for `GridAnnotationNode` output
2023-04-23 16:18:38 +02:00
LEv145 38018edd1b v 2.3.2
Add multiply lines in `GridAnnotationNode`
Fix typing
Add `COLUMNS_COUNT`, `ROWS_COUNT` for `GridAnnotationNode` output
2023-04-23 16:13:00 +02:00
LEv145 e662eab633 v 2.3.1
Fix paddings for grid annotations
Add `\n` support for text
2023-04-23 15:12:18 +02:00
LEv145 0358455f5b Merge pull request #4 from LEv145/dev
v 2.3.0
2023-04-19 17:54:35 +02:00
LEv145 8404dc8c50 v 2.3.0
Update version
2023-04-19 17:54:17 +02:00
LEv145 afba0bde3e Merge pull request #3 from LEv145/dev
v 2.2.4
2023-04-19 17:52:36 +02:00
LEv145 b7c0fd1b30 v 2.2.4
Fix typo
2023-04-19 17:52:05 +02:00
LEv145 5ef24f2994 Merge pull request #2 from LEv145/dev
v 2.2.3
2023-04-19 17:51:30 +02:00
LEv145 2a4be6c78c v 2.2.3
Add `\n` support (Beta)
Update README
Add `workflow` for `efficiency-nodes-comfyui`
2023-04-19 17:49:53 +02:00
LEv145 d3380d54d8 v 2.2.2
Update README
2023-04-09 15:41:54 +02:00
LEv145 3ae13f538c v 2.2.2
Update README
2023-04-09 15:41:22 +02:00
LEv145 59cf8ffb63 Update README.md 2023-04-09 15:39:46 +02:00
LEv145 f601665a14 v 2.2.1
Update templates
2023-04-09 15:28:15 +02:00
LEv145 b3f5bd1136 Merge pull request #1 from LEv145/dev
v 2.2.0
2023-04-09 15:05:40 +02:00
LEv145 3dd50ec293 v 2.2.0
Update default values for `GridAnnotationNode`
Update templates
2023-04-09 15:02:22 +02:00
LEv145 45d044d4d0 v 2.1.7
Update README
Optimized grid creation (crop)
2023-04-09 14:37:24 +02:00
LEv145 98d3da8b3a v 2.1.6
Fix typing
2023-04-09 12:14:22 +02:00
LEv145 1bc3f221b7 v 2.1.5
Add `GridAnnotation` node
Remove old debug `print`s
Update typing to python3.8
Add support Annotations for `BaseImagesGridNode`
Improved and simplified code
Remove `grid_annotations` util
Add support annotation for `create_images_grid` util
Add static path and font
2023-04-09 02:12:07 +02:00
LEv145 621e988764 v 2.1.4
Fix typing
2023-04-07 01:16:48 +02:00
LEv145 1a05160eb2 v 2.1.3
Add utils module to `__init__`
2023-04-07 01:12:17 +02:00
LEv145 9aff748a12 v 2.1.3
Code simplification
2023-04-07 01:11:20 +02:00
LEv145 c627bb4e39 v 2.1.2
Add `grid_annotations` util
2023-04-07 01:05:38 +02:00
LEv145 764c5e54f9 v 2.1.1
Modular utils
Typo `create_image_grid_by_columns` -> `create_images_grid_by_columns`
Typo `create_image_grid_by_rows` -> `create_images_grid_by_rows`
2023-04-06 22:31:08 +02:00
30 changed files with 2138 additions and 774 deletions
+25
View File
@@ -0,0 +1,25 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "pyproject.toml"
permissions:
issues: write
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'LEv145' }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@v1
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+1
View File
@@ -158,3 +158,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
+8
View File
@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+25
View File
@@ -0,0 +1,25 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyMethodMayBeStaticInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="PyPackageRequirementsInspection" enabled="false" level="WARNING" enabled_by_default="false">
<option name="ignoredPackages">
<value>
<list size="10">
<item index="0" class="java.lang.String" itemvalue="pandas" />
<item index="1" class="java.lang.String" itemvalue="beautifulsoup4" />
<item index="2" class="java.lang.String" itemvalue="selenium" />
<item index="3" class="java.lang.String" itemvalue="textract" />
<item index="4" class="java.lang.String" itemvalue="SQLAlchemy" />
<item index="5" class="java.lang.String" itemvalue="psycopg2" />
<item index="6" class="java.lang.String" itemvalue="python-dotenv" />
<item index="7" class="java.lang.String" itemvalue="requests" />
<item index="8" class="java.lang.String" itemvalue="urllib3" />
<item index="9" class="java.lang.String" itemvalue="PyPDF2" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyRedundantParenthesesInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
</profile>
</component>
+6
View File
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Poetry (content_sync_server)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Poetry (content_sync_server)" project-jdk-type="Python SDK" />
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/images-grid-comfy-plugin.iml" filepath="$PROJECT_DIR$/.idea/images-grid-comfy-plugin.iml" />
</modules>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 MiB

+25 -14
View File
@@ -1,23 +1,34 @@
# ImagesGrid: Comfy plugin # ImagesGrid: Comfy plugin
![Image](./workflows/mini.png) ## Preview
[Workflows](./workflows/mini.json)
![Image](./workflows/base.png) ![Image](https://github.com/LEv145/images-grid-comfy-plugin/blob/main/.readme/preview.png?raw=true)
[Workflows](./workflows/base.json)
### Simple grid of images
![Image](https://github.com/LEv145/images-grid-comfy-plugin/blob/main/workflows/mini.png?raw=true)
### XYZPlot, like in auto1111, but with more settings
![Image](https://github.com/LEv145/images-grid-comfy-plugin/blob/main/workflows/base.png?raw=true)
### Integration with [`efficiency`](https://github.com/LucianoCirino/efficiency-nodes-comfyui)
![Image](https://github.com/LEv145/images-grid-comfy-plugin/blob/main/workflows/efficiency.png?raw=true)
Workflows: https://github.com/LEv145/images-grid-comfy-plugin/tree/main/workflows
## How to use ## How to use
### Install 1. Download the latest stable release:
https://github.com/LEv145/images-grid-comfy-plugin/archive/refs/heads/main.zip
``` 2. Unpack the node to `custom_nodes`, for example in a folder `custom_nodes/ImagesGrid/`
cd custom_nodes # From comfy path
git clone https://github.com/LEv145/images-grid-comfy-plugin ImagesGrid
```
### Update
```
cd custom_nodes/ImagesGrid ## Source
git pull
``` https://github.com/LEv145/images-grid-comfy-plugin
+8 -1
View File
@@ -1,4 +1,10 @@
from .src import LatentCombineNode, ImagesGridByColumnsNode, ImagesGridByRowsNode, ImageCombineNode from .src import (
LatentCombineNode,
ImagesGridByColumnsNode,
ImagesGridByRowsNode,
ImageCombineNode,
GridAnnotationNode,
)
NODE_CLASS_MAPPINGS = { NODE_CLASS_MAPPINGS = {
@@ -6,4 +12,5 @@ NODE_CLASS_MAPPINGS = {
"ImagesGridByColumns": ImagesGridByColumnsNode, "ImagesGridByColumns": ImagesGridByColumnsNode,
"ImagesGridByRows": ImagesGridByRowsNode, "ImagesGridByRows": ImagesGridByRowsNode,
"ImageCombine": ImageCombineNode, "ImageCombine": ImageCombineNode,
"GridAnnotation": GridAnnotationNode,
} }
+14
View File
@@ -0,0 +1,14 @@
[project]
name = "images-grid-comfy-plugin"
description = "This tool provides a viewer node that allows for checking multiple outputs in a grid, similar to the X/Y Plot extension."
version = "2.6.0"
license = "MIT"
# Comfy UI
[project.urls]
Repository = "https://github.com/LEv145/images-grid-comfy-plugin"
[tool.comfy]
PublisherId = "lev145"
DisplayName = "images-grid-comfy-plugin"
Icon = "https://img10.joyreactor.cc/pics/comment/Anime-%D1%84%D1%8D%D0%BD%D0%B4%D0%BE%D0%BC%D1%8B-vtuber-Neuro-sama-4808746.png"
+1
View File
@@ -1,3 +1,4 @@
from .nodes.images_grid import ImagesGridByColumnsNode, ImagesGridByRowsNode from .nodes.images_grid import ImagesGridByColumnsNode, ImagesGridByRowsNode
from .nodes.latent_combine import LatentCombineNode from .nodes.latent_combine import LatentCombineNode
from .nodes.image_combine import ImageCombineNode from .nodes.image_combine import ImageCombineNode
from .nodes.grid_annotation import GridAnnotationNode
+4 -3
View File
@@ -1,9 +1,10 @@
import typing as t import typing as t
from pathlib import Path
STATIC_PATH = Path(__file__).parent.parent / "static"
class BaseNode(): class BaseNode():
CATEGORY: str = "ImagesGrid" CATEGORY: str = "ImagesGrid"
FUNCTION: str = "execute" FUNCTION: str = "execute"
Image = t.Any
+40
View File
@@ -0,0 +1,40 @@
import typing as t
from PIL import ImageFont
from ..base import BaseNode, STATIC_PATH
from ..utils import Annotation
class GridAnnotationNode(BaseNode):
RETURN_TYPES: tuple[str, ...] = ("GRID_ANNOTATION",)
@classmethod
def INPUT_TYPES(cls) -> dict[str, t.Any]:
return {
"required": {
"column_texts": ("STRING", {"multiline": True}),
"row_texts": ("STRING", {"multiline": True}),
"font_size": ("INT", {"default": 50, "min": 1}),
},
}
def execute(
self,
column_texts: str,
row_texts: str,
font_size: int,
) -> tuple[Annotation]:
font = ImageFont.truetype(str(STATIC_PATH / "Roboto-Regular.ttf"), size=font_size)
column_texts_list = self._get_texts_from_string(column_texts)
row_texts_list = self._get_texts_from_string(row_texts)
result = Annotation(column_texts=column_texts_list, row_texts=row_texts_list, font=font)
return (result,)
def _get_texts_from_string(self, string: str) -> list[str]:
return [
result
for i in string.split(";")
if (result := i.strip()) != ""
]
+6 -11
View File
@@ -2,14 +2,14 @@ import typing as t
import torch import torch
from ..base import BaseNode, Image from ..base import BaseNode
class ImageCombineNode(BaseNode): class ImageCombineNode(BaseNode):
RETURN_TYPES: t.Tuple[str] = ("IMAGE",) RETURN_TYPES: tuple[str, ...] = ("IMAGE",)
@classmethod @classmethod
def INPUT_TYPES(cls) -> t.Dict[str, t.Any]: def INPUT_TYPES(cls) -> dict[str, t.Any]:
return { return {
"required": { "required": {
"image_1": ("IMAGE",), "image_1": ("IMAGE",),
@@ -19,14 +19,9 @@ class ImageCombineNode(BaseNode):
def execute( def execute(
self, self,
image_1: Image, image_1: torch.Tensor,
image_2: Image, image_2: torch.Tensor,
) -> t.Tuple[Image]: ) -> tuple[torch.Tensor]:
print(image_1.size())
print(image_2.size())
print(image_1)
result = torch.cat((image_1, image_2), 0) result = torch.cat((image_1, image_2), 0)
print(result.size())
return (result,) return (result,)
+32 -14
View File
@@ -1,30 +1,48 @@
import typing as t import typing as t
from ..base import BaseNode, Image import torch
from ..base import BaseNode
from ..utils import ( from ..utils import (
tensor_to_pillow, tensor_to_pillow,
pillow_to_tensor, pillow_to_tensor,
create_image_grid_by_columns, create_images_grid_by_columns,
create_image_grid_by_rows, create_images_grid_by_rows,
Annotation,
) )
class BaseImagesGridNode(BaseNode): class BaseImagesGridNode(BaseNode):
RETURN_TYPES: t.Tuple[str] = ("IMAGE",) RETURN_TYPES: tuple[str, ...] = ("IMAGE",)
@classmethod @classmethod
def _create_input_types(cls, coordinate_name: str) -> t.Dict[str, t.Any]: def _create_input_types(cls, coordinate_name: str) -> dict[str, t.Any]:
return { return {
"required": { "required": {
"images": ("IMAGE",), "images": ("IMAGE",),
"gap": ("INT", {"default": 0, "min": 0}), "gap": ("INT", {"default": 0, "min": 0}),
coordinate_name: ("INT", {"default": 1, "min": 1}), coordinate_name: ("INT", {"default": 1, "min": 1}),
},
"optional": {
"annotation": ("GRID_ANNOTATION",),
} }
} }
def _create_execute(self, images, function, function_kw) -> t.Tuple[Image]: def _create_execute(
self,
function: t.Callable,
\
images: torch.Tensor,
gap: int,
annotation: Annotation | None = None,
**kw,
) -> tuple[torch.Tensor]:
pillow_images = [tensor_to_pillow(i) for i in images] pillow_images = [tensor_to_pillow(i) for i in images]
pillow_grid = function(images=pillow_images, **function_kw) pillow_grid = function(
images=pillow_images,
gap=gap,
annotation=annotation,
**kw,
)
tensor_grid = pillow_to_tensor(pillow_grid) tensor_grid = pillow_to_tensor(pillow_grid)
return (tensor_grid,) return (tensor_grid,)
@@ -32,17 +50,17 @@ class BaseImagesGridNode(BaseNode):
class ImagesGridByColumnsNode(BaseImagesGridNode): class ImagesGridByColumnsNode(BaseImagesGridNode):
@classmethod @classmethod
def INPUT_TYPES(cls) -> t.Dict[str, t.Any]: def INPUT_TYPES(cls) -> dict[str, t.Any]:
return cls._create_input_types("max_columns") return cls._create_input_types("max_columns")
def execute(self, images: Image, **kw) -> tuple[Image]: def execute(self, **kw) -> tuple[torch.Tensor]:
return self._create_execute(images, create_image_grid_by_columns, kw) return self._create_execute(create_images_grid_by_columns, **kw)
class ImagesGridByRowsNode(BaseImagesGridNode): class ImagesGridByRowsNode(BaseImagesGridNode):
@classmethod @classmethod
def INPUT_TYPES(cls) -> t.Dict[str, t.Any]: def INPUT_TYPES(cls) -> dict[str, t.Any]:
return cls._create_input_types("max_rows") return cls._create_input_types("max_rows")
def execute(self, images: Image, **kw) -> tuple[Image]: def execute(self, **kw) -> tuple[torch.Tensor]:
return self._create_execute(images, create_image_grid_by_rows, kw) return self._create_execute(create_images_grid_by_rows, **kw)
+6 -6
View File
@@ -2,14 +2,14 @@ import typing as t
import torch import torch
from ..base import BaseNode, Image from ..base import BaseNode
class LatentCombineNode(BaseNode): class LatentCombineNode(BaseNode):
RETURN_TYPES: t.Tuple[str] = ("LATENT",) RETURN_TYPES: tuple[str, ...] = ("LATENT",)
@classmethod @classmethod
def INPUT_TYPES(cls) -> t.Dict[str, t.Any]: def INPUT_TYPES(cls) -> dict[str, t.Any]:
return { return {
"required": { "required": {
"latent_1": ("LATENT",), "latent_1": ("LATENT",),
@@ -19,9 +19,9 @@ class LatentCombineNode(BaseNode):
def execute( def execute(
self, self,
latent_1: t.Dict[str, t.Any], latent_1: dict[str, torch.Tensor],
latent_2: t.Dict[str, t.Any], latent_2: dict[str, torch.Tensor],
) -> t.Tuple[t.Dict[str, t.Any]]: ) -> tuple[dict[str, torch.Tensor]]:
samples = torch.cat((latent_1["samples"], latent_2["samples"]), 0) samples = torch.cat((latent_1["samples"], latent_2["samples"]), 0)
return ({"samples": samples},) return ({"samples": samples},)
-53
View File
@@ -1,53 +0,0 @@
import typing as t
import torch
import numpy as np
from PIL import Image
def tensor_to_pillow(image):
return Image.fromarray(np.clip(255. * image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8))
def pillow_to_tensor(image):
return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0)
def create_image_grid_by_columns(
images: t.List[Image.Image],
gap: int,
max_columns: int,
) -> Image.Image:
max_rows = (len(images) + max_columns - 1) // max_columns
return create_image_grid(images=images, gap=gap, max_columns=max_columns, max_rows=max_rows)
def create_image_grid_by_rows(
images: t.List[Image.Image],
gap: int,
max_rows: int,
) -> Image.Image:
max_columns = (len(images) + max_rows - 1) // max_rows
return create_image_grid(images=images, gap=gap, max_columns=max_columns, max_rows=max_rows)
def create_image_grid(
images: t.List[Image.Image],
gap: int,
max_columns: int,
max_rows: int,
) -> Image.Image:
size = images[0].size
width = size[0] * max_columns + (max_columns - 1) * gap
height = size[1] * max_rows + (max_rows - 1) * gap
grid_image = Image.new("RGB", (width, height), color="white")
for i, image in enumerate(images):
x = (i % max_columns) * (size[0] + gap)
y = (i // max_columns) * (size[1] + gap)
grid_image.paste(image, (x, y))
return grid_image
+6
View File
@@ -0,0 +1,6 @@
from .images_grid import (
create_images_grid_by_columns,
create_images_grid_by_rows,
Annotation,
)
from .tensor_convert import tensor_to_pillow, pillow_to_tensor
+210
View File
@@ -0,0 +1,210 @@
import typing as t
from dataclasses import dataclass
from contextlib import suppress
from PIL import Image, ImageDraw, ImageFont
WIDEST_LETTER = "W"
@dataclass
class Annotation():
column_texts: list[str]
row_texts: list[str]
font: ImageFont.FreeTypeFont
def create_images_grid_by_columns(
images: list[Image.Image],
gap: int,
max_columns: int,
annotation: Annotation | None = None,
) -> Image.Image:
max_rows = (len(images) + max_columns - 1) // max_columns
return _create_images_grid(images, gap, max_columns, max_rows, annotation)
def create_images_grid_by_rows(
images: list[Image.Image],
gap: int,
max_rows: int,
annotation: Annotation | None = None,
) -> Image.Image:
max_columns = (len(images) + max_rows - 1) // max_rows
return _create_images_grid(images, gap, max_columns, max_rows, annotation)
@dataclass
class _GridInfo():
image: Image.Image
gap: int
one_image_size: tuple[int, int]
def _create_images_grid(
images: list[Image.Image],
gap: int,
max_columns: int,
max_rows: int,
annotation: Annotation | None,
) -> Image.Image:
size = images[0].size
grid_width = size[0] * max_columns + (max_columns - 1) * gap
grid_height = size[1] * max_rows + (max_rows - 1) * gap
grid_image = Image.new("RGB", (grid_width, grid_height), color="white")
_arrange_images_on_grid(grid_image, images=images, size=size, max_columns=max_columns, gap=gap)
if annotation is None:
return grid_image
return _create_grid_annotation(
grid_info=_GridInfo(
image=grid_image,
gap=gap,
one_image_size=size,
),
column_texts=annotation.column_texts,
row_texts=annotation.row_texts,
font=annotation.font,
)
def _arrange_images_on_grid(
grid_image: Image.Image,
/,
images: list[Image.Image],
size: tuple[int, int],
max_columns: int,
gap: int,
):
for i, image in enumerate(images):
x = (i % max_columns) * (size[0] + gap)
y = (i // max_columns) * (size[1] + gap)
grid_image.paste(image, (x, y))
def _create_grid_annotation(
grid_info: _GridInfo,
column_texts: list[str],
row_texts: list[str],
font: ImageFont.FreeTypeFont,
) -> Image.Image:
if not column_texts and not row_texts:
raise ValueError("Column text and row text is empty")
grid = grid_info.image
left_padding = 0
top_padding = 0
if row_texts:
left_padding = int(
max(
font.getlength(splitted_text)
for raw_text in row_texts
for splitted_text in raw_text.split("\n")
)
+ font.getlength(WIDEST_LETTER)*2
)
if column_texts:
top_padding = max(elem.count("\n") for elem in column_texts) * int(font.size) + int(font.size * 2)
image = Image.new(
"RGB",
(grid.size[0] + left_padding, grid.size[1] + top_padding),
color="white",
)
draw = ImageDraw.Draw(image)
# https://github.com/python-pillow/Pillow/blob/9.5.x/docs/reference/ImageDraw.rst
draw.font = font # type: ignore
_paste_image_to_lower_left_corner(image, grid)
if column_texts:
_draw_column_text(
draw=draw,
texts=column_texts,
grid_info=grid_info,
left_padding=left_padding,
top_padding=top_padding,
)
if row_texts:
_draw_row_text(
draw=draw,
texts=row_texts,
grid_info=grid_info,
left_padding=left_padding,
top_padding=top_padding,
)
return image
def _draw_column_text(
draw: ImageDraw.ImageDraw,
texts: list[str],
grid_info: _GridInfo,
left_padding: int,
top_padding: int,
) -> None:
i = 0
x0 = left_padding
y0 = 0
x1 = left_padding + grid_info.one_image_size[0]
y1 = top_padding
while x0 != grid_info.image.size[0] + left_padding + grid_info.gap:
i = _draw_text_by_xy((x0, y0, x1, y1), i, draw=draw, texts=texts)
x0 += grid_info.one_image_size[0] + grid_info.gap
x1 += grid_info.one_image_size[0] + grid_info.gap
def _draw_row_text(
draw: ImageDraw.ImageDraw,
texts: list[str],
grid_info: _GridInfo,
left_padding: int,
top_padding: int,
) -> None:
i = 0
x0 = 0
y0 = top_padding
x1 = left_padding
y1 = top_padding + grid_info.one_image_size[1]
while y0 != grid_info.image.size[1] + top_padding + grid_info.gap:
i = _draw_text_by_xy((x0, y0, x1, y1), i, draw=draw, texts=texts)
y0 += grid_info.one_image_size[1] + grid_info.gap
y1 += grid_info.one_image_size[1] + grid_info.gap
def _draw_text_by_xy(
xy: tuple[int, int, int, int],
index: int,
\
draw: ImageDraw.ImageDraw,
texts: list[str],
) -> int:
with suppress(IndexError):
_draw_center_text(draw, xy, texts[index])
return index + 1
def _draw_center_text(
draw: ImageDraw.ImageDraw,
xy: tuple[int, int, int, int],
text: str,
fill: t.Any = "black",
) -> None:
_, _, *text_size = draw.textbbox((0, 0), text)
draw.multiline_text(
(
(xy[2] - text_size[0] + xy[0]) / 2,
(xy[3] - text_size[1] + xy[1]) / 2,
),
text,
fill=fill,
)
def _paste_image_to_lower_left_corner(base: Image.Image, image: Image.Image) -> None:
base.paste(image, (base.size[0] - image.size[0], base.size[1] - image.size[1]))
+13
View File
@@ -0,0 +1,13 @@
import typing as t
import torch
import numpy as np
from PIL import Image
def tensor_to_pillow(image: t.Any) -> Image.Image:
return Image.fromarray(np.clip(255. * image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8))
def pillow_to_tensor(image: Image.Image) -> t.Any:
return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0)
Binary file not shown.
+645 -588
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

After

Width:  |  Height:  |  Size: 296 KiB

+473
View File
@@ -0,0 +1,473 @@
{
"last_node_id": 19,
"last_link_id": 36,
"nodes": [
{
"id": 6,
"type": "VAEDecode",
"pos": [
1083,
263
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"pinned": true,
"collapsed": true
},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 11,
"slot_index": 0
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
29
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAE Decode"
}
},
{
"id": 3,
"type": "XY Plot",
"pos": [
529,
778
],
"size": {
"0": 225.0937042236328,
"1": 244
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "script",
"type": "SCRIPT",
"links": [
23
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "XY Plot"
},
"widgets_values": [
"Steps",
"20;30;40",
"CFG Scale",
"7;9;11",
10,
"False",
0,
"____________EXAMPLES____________\n(X/Y_types) (X/Y_values)\nLatent Batch n/a\nSeeds++ Batch 3\nSteps 15;20;25\nCFG Scale 5;10;15;20\nSampler(1) dpmpp_2s_ancestral;euler;ddim\nSampler(2) dpmpp_2m,karras;heun,normal\nDenoise .3;.4;.5;.6;.7\nVAE vae_1; vae_2; vae_3\n\n____________SAMPLERS____________\neuler;\neuler_ancestral;\nheun;\ndpm_2;\ndpm_2_ancestral;\nlms;\ndpm_fast;\ndpm_adaptive;\ndpmpp_2s_ancestral;\ndpmpp_sde;\ndpmpp_2m;\nddim;\nuni_pc;\nuni_pc_bh2\n\n___________SCHEDULERS___________\nkarras;\nnormal;\nsimple;\nddim_uniform\n\n______________VAE_______________\nkl-f8-anime2.ckpt;\nnovelai.vae.pt;\nvae-ft-mse-840000-ema-pruned.ckpt\n\n_____________NOTES______________\n- During a 'Latent Batch', the corresponding X/Y_value is ignored.\n- During a 'Latent Batch', the latent_id is ignored.\n- For a 'Seeds++ Batch', starting seed is defined by the KSampler.\n- Trailing semicolons are ignored in the X/Y_values.\n- Parameter types not set by this node are defined in the KSampler."
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 2,
"type": "KSampler (Efficient)",
"pos": [
767,
252
],
"size": {
"0": 288.36614990234375,
"1": 374
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 2
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 3
},
{
"name": "latent_image",
"type": "LATENT",
"link": 4
},
{
"name": "optional_vae",
"type": "VAE",
"link": 5
},
{
"name": "script",
"type": "SCRIPT",
"link": 23,
"slot_index": 5
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": []
},
{
"name": "CONDITIONING+",
"type": "CONDITIONING",
"links": []
},
{
"name": "CONDITIONING-",
"type": "CONDITIONING",
"links": null
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
11
],
"slot_index": 3
},
{
"name": "VAE",
"type": "VAE",
"links": [
12
],
"slot_index": 4
},
{
"name": "IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": {
"Node name for S&R": "KSampler (Efficient)"
},
"widgets_values": [
"Script",
0,
428398671204662,
false,
20,
7,
"dpmpp_2m",
"karras",
1,
"Enabled"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 1,
"type": "Efficient Loader",
"pos": [
529,
251
],
"size": {
"0": 222.70794677734375,
"1": 490.5440673828125
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
1
],
"slot_index": 0
},
{
"name": "CONDITIONING+",
"type": "CONDITIONING",
"links": [
2
],
"slot_index": 1
},
{
"name": "CONDITIONING-",
"type": "CONDITIONING",
"links": [
3
],
"slot_index": 2
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
4
],
"slot_index": 3
},
{
"name": "VAE",
"type": "VAE",
"links": [
5
],
"slot_index": 4
},
{
"name": "CLIP",
"type": "CLIP",
"links": null
}
],
"properties": {
"Node name for S&R": "Efficient Loader"
},
"widgets_values": [
"Meina-v9.safetensors",
"novelai.vae.pt",
-2,
"1girl, (hanfu), sidelighting, wallpaper",
"(worst quality:2, low quality:2), (zombie, sketch, interlocked fingers, comic)",
512,
512,
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 5,
"type": "ImagesGridByColumns",
"pos": [
1293,
247
],
"size": [
315,
102
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 29,
"slot_index": 0
},
{
"name": "annotation",
"type": "GRID_ANNOTATION",
"link": 36
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
15
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImagesGridByColumns"
},
"widgets_values": [
5,
3
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 7,
"type": "PreviewImage",
"pos": [
1290,
388
],
"size": {
"0": 737.5480346679688,
"1": 635.1529541015625
},
"flags": {
"collapsed": false
},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 15
}
],
"properties": {
"Node name for S&R": "Preview Image"
}
},
{
"id": 19,
"type": "GridAnnotation",
"pos": [
1070,
305
],
"size": [
210,
326
],
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "GRID_ANNOTATION",
"type": "GRID_ANNOTATION",
"links": [
36
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "GridAnnotation"
},
"widgets_values": [
"Steps: 20;Steps: 30;Steps: 40",
"CGF: 7\nQuality: 10/10;\nCGF: 9\nQuality: 9/10;\nCGF: 11\nQuality: 5/10;",
50
],
"color": "#322",
"bgcolor": "#533"
}
],
"links": [
[
1,
1,
0,
2,
0,
"MODEL"
],
[
2,
1,
1,
2,
1,
"CONDITIONING"
],
[
3,
1,
2,
2,
2,
"CONDITIONING"
],
[
4,
1,
3,
2,
3,
"LATENT"
],
[
5,
1,
4,
2,
4,
"VAE"
],
[
11,
2,
3,
6,
0,
"LATENT"
],
[
12,
2,
4,
6,
1,
"VAE"
],
[
15,
5,
0,
7,
0,
"IMAGE"
],
[
23,
3,
0,
2,
5,
"SCRIPT"
],
[
29,
6,
0,
5,
0,
"IMAGE"
],
[
36,
19,
0,
5,
1,
"GRID_ANNOTATION"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 824 KiB

+561 -84
View File
@@ -1,19 +1,21 @@
{ {
"last_node_id": 56, "last_node_id": 74,
"last_link_id": 97, "last_link_id": 126,
"nodes": [ "nodes": [
{ {
"id": 41, "id": 68,
"type": "LoadImage", "type": "LoadImage",
"pos": [ "pos": [
69, -30,
307 70
], ],
"size": { "size": {
"0": 315, "0": 315,
"1": 102 "1": 102
}, },
"flags": {}, "flags": {
"collapsed": true
},
"order": 0, "order": 0,
"mode": 0, "mode": 0,
"outputs": [ "outputs": [
@@ -21,7 +23,7 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
90 119
], ],
"slot_index": 0 "slot_index": 0
}, },
@@ -35,22 +37,24 @@
"Node name for S&R": "LoadImage" "Node name for S&R": "LoadImage"
}, },
"widgets_values": [ "widgets_values": [
"ComfyUI_00171_.png", "394102.png",
"image" "image"
] ]
}, },
{ {
"id": 42, "id": 41,
"type": "LoadImage", "type": "LoadImage",
"pos": [ "pos": [
69, -30,
449 210
], ],
"size": { "size": {
"0": 315, "0": 315,
"1": 102 "1": 102
}, },
"flags": {}, "flags": {
"collapsed": true
},
"order": 1, "order": 1,
"mode": 0, "mode": 0,
"outputs": [ "outputs": [
@@ -58,7 +62,7 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
91 120
], ],
"slot_index": 0 "slot_index": 0
}, },
@@ -72,22 +76,24 @@
"Node name for S&R": "LoadImage" "Node name for S&R": "LoadImage"
}, },
"widgets_values": [ "widgets_values": [
"ComfyUI_00153_.png", "394102.png",
"image" "image"
] ]
}, },
{ {
"id": 43, "id": 42,
"type": "LoadImage", "type": "LoadImage",
"pos": [ "pos": [
68, -30,
592 350
], ],
"size": { "size": {
"0": 315, "0": 315,
"1": 102 "1": 102
}, },
"flags": {}, "flags": {
"collapsed": true
},
"order": 2, "order": 2,
"mode": 0, "mode": 0,
"outputs": [ "outputs": [
@@ -95,7 +101,7 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
94 112
], ],
"slot_index": 0 "slot_index": 0
}, },
@@ -109,12 +115,171 @@
"Node name for S&R": "LoadImage" "Node name for S&R": "LoadImage"
}, },
"widgets_values": [ "widgets_values": [
"ComfyUI_00116_.png", "394102.png",
"image" "image"
] ]
}, },
{ {
"id": 54, "id": 43,
"type": "LoadImage",
"pos": [
-30,
490
],
"size": {
"0": 315,
"1": 102
},
"flags": {
"collapsed": true
},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
106
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"394102.png",
"image"
]
},
{
"id": 62,
"type": "LoadImage",
"pos": [
-30,
630
],
"size": {
"0": 315,
"1": 102
},
"flags": {
"collapsed": true
},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
105
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"394102.png",
"image"
]
},
{
"id": 63,
"type": "LoadImage",
"pos": [
-30,
770
],
"size": {
"0": 315,
"1": 102
},
"flags": {
"collapsed": true
},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
104
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"394102.png",
"image"
]
},
{
"id": 65,
"type": "ImageCombine",
"pos": [
460,
430
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 113
},
{
"name": "image_2",
"type": "IMAGE",
"link": 106
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
114
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageCombine"
},
"color": "#322",
"bgcolor": "#533"
},
{
"id": 67,
"type": "ImageCombine", "type": "ImageCombine",
"pos": [ "pos": [
460, 460,
@@ -125,18 +290,18 @@
"1": 46 "1": 46
}, },
"flags": {}, "flags": {},
"order": 3, "order": 8,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
"name": "image_1", "name": "image_1",
"type": "IMAGE", "type": "IMAGE",
"link": 90 "link": 118
}, },
{ {
"name": "image_2", "name": "image_2",
"type": "IMAGE", "type": "IMAGE",
"link": 91 "link": 112
} }
], ],
"outputs": [ "outputs": [
@@ -144,7 +309,49 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
93 113
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageCombine"
},
"color": "#322",
"bgcolor": "#533"
},
{
"id": 69,
"type": "ImageCombine",
"pos": [
460,
270
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 119
},
{
"name": "image_2",
"type": "IMAGE",
"link": 120
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
118
], ],
"slot_index": 0 "slot_index": 0
} }
@@ -160,25 +367,25 @@
"type": "ImageCombine", "type": "ImageCombine",
"pos": [ "pos": [
460, 460,
440 510
], ],
"size": { "size": {
"0": 210, "0": 210,
"1": 46 "1": 46
}, },
"flags": {}, "flags": {},
"order": 4, "order": 10,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
"name": "image_1", "name": "image_1",
"type": "IMAGE", "type": "IMAGE",
"link": 93 "link": 114
}, },
{ {
"name": "image_2", "name": "image_2",
"type": "IMAGE", "type": "IMAGE",
"link": 94 "link": 105
} }
], ],
"outputs": [ "outputs": [
@@ -186,7 +393,7 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
95 110
], ],
"slot_index": 0 "slot_index": 0
} }
@@ -198,50 +405,29 @@
"bgcolor": "#533" "bgcolor": "#533"
}, },
{ {
"id": 56, "id": 54,
"type": "PreviewImage", "type": "ImageCombine",
"pos": [ "pos": [
1059, 460,
350 590
],
"size": [
428.921914672851,
507.1954368591306
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 97
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 53,
"type": "ImagesGridByColumns",
"pos": [
700,
350
], ],
"size": { "size": {
"0": 315, "0": 210,
"1": 82 "1": 46
}, },
"flags": {}, "flags": {},
"order": 5, "order": 11,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
"name": "images", "name": "image_1",
"type": "IMAGE", "type": "IMAGE",
"link": 95, "link": 110
"slot_index": 0 },
{
"name": "image_2",
"type": "IMAGE",
"link": 104
} }
], ],
"outputs": [ "outputs": [
@@ -249,7 +435,183 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
97 115,
122
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageCombine"
},
"color": "#322",
"bgcolor": "#533"
},
{
"id": 73,
"type": "Reroute",
"pos": [
1370,
240
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 125,
"slot_index": 0
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
124
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 74,
"type": "PreviewImage",
"pos": [
1098,
383
],
"size": {
"0": 332.1975402832031,
"1": 513.37060546875
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 126
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 72,
"type": "PreviewImage",
"pos": [
1460,
380
],
"size": {
"0": 353,
"1": 510
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 124
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 61,
"type": "ImagesGridByRows",
"pos": [
740,
380
],
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 115
},
{
"name": "annotation",
"type": "GRID_ANNOTATION",
"link": 102
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
126
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImagesGridByRows"
},
"widgets_values": [
30,
2
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 71,
"type": "ImagesGridByColumns",
"pos": [
740,
233
],
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 122
},
{
"name": "annotation",
"type": "GRID_ANNOTATION",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
125
], ],
"slot_index": 0 "slot_index": 0
} }
@@ -258,59 +620,174 @@
"Node name for S&R": "ImagesGridByColumns" "Node name for S&R": "ImagesGridByColumns"
}, },
"widgets_values": [ "widgets_values": [
5, 30,
2 2
], ],
"color": "#322", "color": "#322",
"bgcolor": "#533" "bgcolor": "#533"
},
{
"id": 60,
"type": "GridAnnotation",
"pos": [
350,
690
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "GRID_ANNOTATION",
"type": "GRID_ANNOTATION",
"links": [
102
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "GridAnnotation"
},
"widgets_values": [
"Column 1; Column 2; Column 3",
"My favorite;Others",
400
],
"color": "#322",
"bgcolor": "#533"
} }
], ],
"links": [ "links": [
[ [
90, 102,
41, 60,
0, 0,
54, 61,
0, 1,
"IMAGE" "GRID_ANNOTATION"
], ],
[ [
91, 104,
42, 63,
0, 0,
54, 54,
1, 1,
"IMAGE" "IMAGE"
], ],
[ [
93, 105,
54, 62,
0, 0,
55, 55,
0, 1,
"IMAGE" "IMAGE"
], ],
[ [
94, 106,
43, 43,
0, 0,
55, 65,
1, 1,
"IMAGE" "IMAGE"
], ],
[ [
95, 110,
55, 55,
0, 0,
53, 54,
0, 0,
"IMAGE" "IMAGE"
], ],
[ [
97, 112,
53, 42,
0, 0,
56, 67,
1,
"IMAGE"
],
[
113,
67,
0,
65,
0,
"IMAGE"
],
[
114,
65,
0,
55,
0,
"IMAGE"
],
[
115,
54,
0,
61,
0,
"IMAGE"
],
[
118,
69,
0,
67,
0,
"IMAGE"
],
[
119,
68,
0,
69,
0,
"IMAGE"
],
[
120,
41,
0,
69,
1,
"IMAGE"
],
[
122,
54,
0,
71,
0,
"IMAGE"
],
[
124,
73,
0,
72,
0,
"IMAGE"
],
[
125,
71,
0,
73,
0,
"*"
],
[
126,
61,
0,
74,
0, 0,
"IMAGE" "IMAGE"
] ]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 530 KiB