Fetch a given path or URL as a 3D RGB array of values
img_read_as_array(
filename,
width = NULL,
height = NULL,
fill_type = "squish",
gravity = "Center",
scale = 1,
filter = "lanczos"
)filename or URL
if specified scale the image to these dimensions before converting to an array
how to fill the image area. 'none', 'fit', 'squish', 'expand', 'tile'
imagemagick gravity option on how to position an image during a resize/fill
scale image prior to tiling. Only for fill_type == 'tile'
filter for scaling. default: lanczos. only for fill_type = 'tile'
3D array. If the image was pure gray, then it will be promoted to be an unsaturated RGB image.