Skip to content

capturegraph.procedures.nodes.automatic.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[PImage]

Downloads an image from a URL and returns it as a PImage.

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 str

The URL of the image to download

Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/download.py
@make_procedure
class DownloadImage(Procedure[PImage]):
    """
    Downloads an image from a URL and returns it as a PImage.

    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 (str): The URL of the image to download
    """

    url: str