Skip to content

download

download #

Download procedures for fetching remote resources.

These procedures enable workflows to incorporate external data by downloading resources from URLs. Downloaded images are automatically converted to HEIC format for efficient storage.

DownloadImage #

Bases: Procedure[Image]

Download an image from a URL and return it as a Image.

The image is downloaded and converted to HEIC format for efficient storage. This procedure is useful for preloading reference images into capture workflows.

Attributes:

Name Type Description
url Input[String]

The URL of the image to download.

Source code in capturegraph-lib/capturegraph/procedures/nodes/process/download.py
@make_procedure
class DownloadImage(Procedure[Image]):
    """Download an image from a URL and return it as a Image.

    The image is downloaded and converted to HEIC format for efficient
    storage. This procedure is useful for preloading reference images
    into capture workflows.

    Attributes:
        url: The URL of the image to download.
    """

    url: Input[String]