Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform images into pencil sketch-like artworks using advanced image processing techniques for artistic effects, including grayscale conversion, Gaussian blur, dodge blend, and optional sharpening.
The PencilSketch node is designed to transform your images into pencil sketch-like artworks, providing a unique and artistic effect. This node leverages advanced image processing techniques to convert colored images into grayscale sketches, mimicking the appearance of hand-drawn pencil art. The process involves converting the image to grayscale, inverting it, applying a Gaussian blur, and then using a dodge blend to create the final sketch effect. Additionally, the node offers an option to sharpen the final image, enhancing the details and giving it a more defined look. This node is particularly useful for creating stylized images, adding artistic flair to photographs, or preparing images for further creative processing.
This parameter expects an image tensor as input. The image should be in the format (B, H, W, C), where B is the batch size, H is the height, W is the width, and C is the number of channels. The node will process this image to generate the pencil sketch effect.
The blur_radius
parameter controls the radius of the Gaussian blur applied to the inverted grayscale image. This blur helps in creating the soft, blended look typical of pencil sketches. The value can range from 1 to 31, with a default value of 5. Increasing the blur radius will result in a softer and more diffused sketch, while decreasing it will produce a sharper and more detailed sketch.
The sharpen_alpha
parameter determines the intensity of the sharpening effect applied to the final image. This parameter can take values from 0.0 to 10.0, with a default value of 1.0. A higher value will result in a more pronounced sharpening effect, enhancing the details and edges in the sketch. Setting this parameter to 0.0 will disable the sharpening effect.
The output is an image tensor in the format (B, H, W, C), where B is the batch size, H is the height, W is the width, and C is the number of channels. This tensor represents the final pencil sketch image, which has been processed to mimic the appearance of a hand-drawn pencil sketch. The output image retains the same dimensions as the input image.
blur_radius
parameter. This will create a more blended and less detailed sketch.blur_radius
and increase the sharpen_alpha
parameter. This combination will enhance the edges and details in the sketch.sharpen_alpha
to find the right balance between detail and smoothness in your sketches.blur_radius
parameter must be within the range of 1 to 31. If a value outside this range is provided, the node will not function correctly.blur_radius
parameter to be within the valid range of 1 to 31.sharpen_alpha
parameter must be within the range of 0.0 to 10.0. If a value outside this range is provided, the node will not function correctly.sharpen_alpha
parameter to be within the valid range of 0.0 to 10.0.© Copyright 2024 RunComfy. All Rights Reserved.