ComfyUI > Nodes > ComfyUI-LogicUtils > Save Custom JPG Node

ComfyUI Node: Save Custom JPG Node

Class Name

SaveCustomJPGNode

Category
image
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils 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

Save Custom JPG Node Description

Facilitates efficient JPEG image saving with balanced quality and file size for AI artists.

Save Custom JPG Node:

The SaveCustomJPGNode is designed to facilitate the saving of images in the JPEG format, a widely used method of lossy compression for digital images. This node is particularly beneficial for AI artists who need to store their generated images efficiently while maintaining a balance between image quality and file size. The node's primary function is to convert and save images into the JPEG format, which is ideal for web use and sharing due to its reduced file size compared to other formats like PNG. By using this node, you can ensure that your images are saved with the appropriate compression settings, making them suitable for various applications without compromising too much on visual quality.

Save Custom JPG Node Input Parameters:

image

The image parameter is the primary input for the SaveCustomJPGNode, representing the image data that you wish to save in JPEG format. This parameter accepts image data in various forms, such as a PIL image object or a NumPy array. The quality of the saved JPEG image is influenced by the input image's resolution and color depth. It is crucial to provide a high-quality source image to achieve the best results in the JPEG output.

quality

The quality parameter determines the level of compression applied to the JPEG image. It typically ranges from 1 to 100, where a higher value results in better image quality but larger file size, while a lower value reduces file size at the expense of image quality. The default value is often set around 75, which provides a good balance between quality and compression. Adjusting this parameter allows you to control the trade-off between image fidelity and storage efficiency.

Save Custom JPG Node Output Parameters:

file_path

The file_path parameter is the output of the SaveCustomJPGNode, indicating the location where the JPEG image has been saved. This parameter is crucial as it allows you to access and utilize the saved image in subsequent workflows or for sharing purposes. The file path is typically a string that specifies the directory and filename of the saved JPEG image, ensuring that you can easily locate and manage your image files.

Save Custom JPG Node Usage Tips:

  • To achieve optimal image quality, start with a high-resolution source image and adjust the quality parameter to find the best balance between file size and visual fidelity.
  • Use the file_path output to organize your saved images systematically, making it easier to retrieve and manage them for future projects.

Save Custom JPG Node Common Errors and Solutions:

"Invalid image format"

  • Explanation: This error occurs when the input image is not in a supported format or is corrupted.
  • Solution: Ensure that the input image is a valid and supported format, such as a PIL image object or a NumPy array, before passing it to the node.

"Quality parameter out of range"

  • Explanation: This error indicates that the quality parameter is set outside the acceptable range of 1 to 100.
  • Solution: Adjust the quality parameter to a value within the specified range to ensure proper JPEG compression settings.

Save Custom JPG Node Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
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.