ComfyUI > Nodes > MTB Nodes > Unsplash Image (mtb)

ComfyUI Node: Unsplash Image (mtb)

Class Name

Unsplash Image (mtb)

Category
mtb/generate
Author
melMass (Account age: 3754days)
Extension
MTB Nodes
Latest Updated
2024-07-02
Github Stars
0.35K

How to Install MTB Nodes

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

Unsplash Image (mtb) Description

Fetch random high-quality images from Unsplash for AI art projects with customizable dimensions and themes.

Unsplash Image (mtb):

The Unsplash Image (mtb) node is designed to fetch random images from Unsplash, a popular online repository of high-quality, freely usable images. This node allows you to specify the dimensions of the image and optionally provide a keyword to tailor the image search to a specific theme or subject. By leveraging the Unsplash API, this node can generate diverse and visually appealing images that can be used in various AI art projects. The primary goal of this node is to provide a seamless and efficient way to incorporate random, high-quality images into your creative workflows, enhancing the visual richness and diversity of your outputs.

Unsplash Image (mtb) Input Parameters:

width

The width parameter specifies the width of the image to be fetched from Unsplash. It is an integer value that determines the horizontal dimension of the image in pixels. The minimum value is 0, the maximum value is 8096, and the default value is 512. Adjusting this parameter allows you to control the resolution and aspect ratio of the generated image.

height

The height parameter specifies the height of the image to be fetched from Unsplash. It is an integer value that determines the vertical dimension of the image in pixels. The minimum value is 0, the maximum value is 8096, and the default value is 512. This parameter works in conjunction with the width parameter to define the overall size and aspect ratio of the image.

random_seed

The random_seed parameter is an integer value used to ensure the randomness of the image fetched from Unsplash. It helps in generating different images even with the same keyword and dimensions. The minimum value is 0, the maximum value is 100000, and the default value is 0. By changing this seed, you can obtain a variety of images for the same search criteria.

keyword

The keyword parameter is an optional string that allows you to specify a theme or subject for the image search. The default value is "nature". This parameter helps in narrowing down the search results to images that are more relevant to the specified keyword, enhancing the thematic consistency of the generated images.

Unsplash Image (mtb) Output Parameters:

IMAGE

The IMAGE output parameter represents the image fetched from Unsplash. This output is a tensor representation of the image, which can be directly used in various AI art projects. The image is returned in a format that is compatible with further processing and manipulation within your creative workflows, providing a versatile and high-quality visual asset.

Unsplash Image (mtb) Usage Tips:

  • To get images of a specific theme, use the keyword parameter to specify relevant search terms such as "mountains", "cityscape", or "abstract".
  • Experiment with different random_seed values to generate a variety of images even with the same keyword and dimensions, ensuring a diverse set of visuals for your projects.
  • Adjust the width and height parameters to match the resolution requirements of your project, ensuring the images fit well within your design or application.

Unsplash Image (mtb) Common Errors and Solutions:

Error retrieving image: <error_message>

  • Explanation: This error occurs when there is an issue with the network request to Unsplash, such as a connectivity problem or an invalid URL.
  • Solution: Check your internet connection and ensure that the parameters provided (width, height, keyword, random_seed) are valid. If the problem persists, try using different values for the parameters or retrying the request after some time.

Unsplash Image (mtb) Related Nodes

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