ComfyUI > Nodes > Mikey Nodes > Mosaic Expand Image (Mikey)

ComfyUI Node: Mosaic Expand Image (Mikey)

Class Name

MosaicExpandImage

Category
Mikey/Image
Author
bash-j (Account age: 4196days)
Extension
Mikey Nodes
Latest Updated
2024-06-15
Github Stars
0.08K

How to Install Mikey Nodes

Install this extension via the ComfyUI Manager by searching for Mikey Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Mikey Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Mosaic Expand Image (Mikey) Description

Expand images with mosaic-like extensions for creative borders and canvas expansion, maintaining visual integrity.

Mosaic Expand Image (Mikey):

The MosaicExpandImage node is designed to expand an image by adding mosaic-like extensions to its sides. This node is particularly useful for creating visually appealing borders or extending the canvas size of an image without simply duplicating the edge pixels. By generating mosaic patterns from the image's edges, it ensures a seamless and artistic expansion. This method is beneficial for AI artists looking to enhance their images creatively, providing a unique way to extend the canvas while maintaining the visual integrity of the original image.

Mosaic Expand Image (Mikey) Input Parameters:

image

The image to be expanded. This parameter takes the original image that you want to extend with mosaic patterns. The image should be in a format that can be processed by the node, typically a tensor or PIL image.

left

The number of fifths of the image width to expand on the left side. Increasing this value will add more mosaic blocks to the left edge of the image. The default value is 0, meaning no expansion on the left side.

top

The number of fifths of the image height to expand on the top side. Increasing this value will add more mosaic blocks to the top edge of the image. The default value is 0, meaning no expansion on the top side.

The number of fifths of the image width to expand on the right side. Increasing this value will add more mosaic blocks to the right edge of the image. The default value is 0, meaning no expansion on the right side.

bottom

The number of fifths of the image height to expand on the bottom side. Increasing this value will add more mosaic blocks to the bottom edge of the image. The default value is 0, meaning no expansion on the bottom side.

Mosaic Expand Image (Mikey) Output Parameters:

new_img

The expanded image with mosaic patterns added to the specified sides. This output is the final image after the expansion process, including the original image and the newly added mosaic borders.

mask

A black and white mask image where white represents the original image and black represents the expanded mosaic areas. This mask can be used for further image processing or blending operations.

Mosaic Expand Image (Mikey) Usage Tips:

  • To create a balanced expansion, try to keep the values of left, top, right, and bottom similar. This will ensure that the mosaic patterns are evenly distributed around the image.
  • Use the mask output to blend the expanded image with other images or to apply selective filters to the original and expanded areas.
  • Experiment with different block sizes in the mosaic creation function to achieve various artistic effects. Smaller blocks will create a more detailed mosaic, while larger blocks will give a more abstract look.

Mosaic Expand Image (Mikey) Common Errors and Solutions:

"Invalid image format"

  • Explanation: The input image is not in a supported format.
  • Solution: Ensure that the input image is either a tensor or a PIL image. Convert the image to the appropriate format before passing it to the node.

"Expansion values must be non-negative"

  • Explanation: One or more of the expansion parameters (left, top, right, bottom) are negative.
  • Solution: Set all expansion parameters to non-negative values. Negative values are not allowed as they do not make sense in the context of image expansion.

"Image dimensions too small for expansion"

  • Explanation: The original image dimensions are too small to create the specified mosaic blocks.
  • Solution: Use a larger image or reduce the expansion values. Ensure that the image dimensions are sufficient to accommodate the mosaic blocks based on the specified expansion parameters.

Mosaic Expand Image (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.