The img_hosting
node in ComfyUI LLM Party provides a functionality to upload images to several supported image hosting services. This allows users to easily share and retrieve images via URLs, which are useful for various applications, including building workflows where image accessibility over the internet is beneficial.
This node is designed to convert an image stored in a tensor format and upload it as a PNG image to a specified image hosting service, subsequently returning the URL of the uploaded image. This process is particularly useful when the user needs to share or store images online in a convenient and accessible manner.
The img_hosting
node accepts the following inputs:
image: This is an input image in the form of a tensor. The node converts this tensor into a PNG image format suitable for online sharing.
api_key: A string representing the API key required by the chosen image hosting service. This key is necessary for authenticating the user’s requests with the image hosting API.
img_hosting: A selectable option specifying the target image hosting service. Available options include chevereto
, sm.ms
, imgbb.com
, and imagehub.cc
. The default service is sm.ms
.
is_enable: A boolean value to activate or deactivate the node functionality. If set to false, the node will not perform any operations.
img_hosting_url (optional): This input is required only if chevereto
is chosen as the image hosting service. It should contain the API address of the user’s custom-deployed Chevereto server.
The node produces two outputs:
img_URL: A string containing the URL of the uploaded image. This URL can be used to access and share the image online.
is_help: A string providing guidance on how to configure the node inputs, especially concerning the use of the chevereto
option and the need for an API key.
The img_hosting
node is a versatile component in ComfyUI workflows that require image hosting solutions. It can be seamlessly integrated to:
img_hosting
node.is_enable
input is set to true to allow the upload process.Service Selection: Users can select from multiple image hosting services based on their preference and regional access. This flexibility ensures compatibility with global users.
Custom Hosting with Chevereto: Users can deploy their own image hosting solution with Chevereto, providing options for customization and potentially higher privacy/security depending on the deployment setup.
API Key Requirement: Most of the hosting services require an API key for authentication. It is important to obtain and securely store these keys to enable the node functionality.
Localized Language Support: The node provides localized instructions and labels based on the client system language settings or custom settings if specified.
The img_hosting
node is a powerful tool for ensuring that images within ComfyUI workflows can be managed effectively online, broadening the scope of projects users can undertake with accessible image services.