Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform raster images into SVG vector graphics for high-quality, scalable artwork creation.
The ConvertRasterToVector
node is designed to transform raster images into vector graphics in SVG format. This conversion process is particularly beneficial for AI artists who want to scale images without losing quality, as vector graphics are resolution-independent. The node leverages advanced algorithms to trace the pixel data of raster images and convert them into scalable vector paths. This allows for more flexible and high-quality image manipulation, making it an essential tool for creating detailed and scalable artwork from raster images.
This parameter accepts the raster image that you want to convert to a vector format. The image should be in a format that can be processed by the node, typically an IMAGE
type.
Determines the color mode for the vector conversion. Options are color
and binary
, with the default being color
. The color
mode retains the original colors of the image, while binary
converts the image to black and white.
Specifies the hierarchical structure of the vector paths. Options are stacked
and cutout
, with the default being stacked
. Stacked
mode layers the paths on top of each other, while cutout
mode creates a cutout effect.
Defines the type of paths to be used in the vector graphic. Options are spline
, polygon
, and none
, with the default being spline
. Spline
creates smooth curves, polygon
creates straight-edged shapes, and none
disables path smoothing.
An integer value that filters out small speckles in the image. The default is 4, with a range from 0 to 100. Higher values will remove more speckles, which can help clean up the vector output.
An integer value that sets the precision of color matching in the vector graphic. The default is 6, with a range from 0 to 10. Higher values result in more accurate color representation.
An integer value that determines the difference in color layers. The default is 16, with a range from 0 to 256. This affects how distinct the color layers are in the vector graphic.
An integer value that sets the threshold for detecting corners in the image. The default is 60, with a range from 0 to 180. Lower values will detect more corners, resulting in more detailed vector paths.
A float value that sets the minimum length for a path segment. The default is 4.0, with a range from 0.0 to 10.0. Shorter lengths will create more detailed paths.
An integer value that sets the maximum number of iterations for the vectorization process. The default is 10, with a range from 1 to 70. More iterations can result in a more accurate vector graphic.
An integer value that sets the threshold for splicing paths together. The default is 45, with a range from 0 to 180. Lower values will splice more paths together, simplifying the vector graphic.
An integer value that sets the precision of the paths in the vector graphic. The default is 3, with a range from 0 to 10. Higher values result in more precise paths.
The output is a list of SVG strings, each representing a vectorized version of the input raster image. These SVG strings can be used in various applications that support SVG format, allowing for scalable and high-quality image rendering.
max_iterations
and path_precision
to capture more intricate details.filter_speckle
parameter to clean up noisy images before vectorization.colormode
and hierarchical
settings to achieve different artistic effects in your vector graphics.max_iterations
and path_precision
may also help.© Copyright 2024 RunComfy. All Rights Reserved.