read_image_from_url.Rd
Read either a PNG or JPG file from a URL. This function reads an image file (PNG or JPG) from a URL and returns the image data.
read_image_from_url(path)
path | A character string representing the URL of the image file. |
---|
An object containing the image data. If the image is a JPG, the object will be of class "array". If the image is a PNG, the object will be of class "matrix".