Fetch images¶
vision
·
image
·
download
Download images from URLs as a column of base64 (string-) encoded PNGs.
The resulting column can be used to configure the visualization such that each row/node is drawn as an image. This will also ensure the images are available later on, when the original URLs are potentially not valid anymore.
Usage¶
The following are the step's expected inputs and outputs and their specific types.
fetch_images(url: url, {"param": value}) -> (image: category)
where the object {"param": value}
is optional in most cases and if present may contain any of the parameters described in the
corresponding section below.
Example¶
Since the step has no configuration parameters, simply use
fetch_images(ds.image_url, {"max_width": 15, "max_height": 15}) -> (ds.image_b64)
Inputs¶
url: column:url
The URLs pointing to images to be downloaded.
Outputs¶
image: column:category
The base64 strings representing the downloaded images.
Parameters¶
max_width: integer = 15
Maximum image width. Images will be downscaled to this width if wider.
Range: 5 ≤ max_width ≤ 150
max_height: integer = 15
Maximum image height. Images will be downscaled to this height if taller.
Range: 5 ≤ max_height ≤ 150