create_image method

create_image

Creates a new image resource out of image file located at the image_path.

Returns

New image resource.

def create_image(self, image_path):
    ...
ParameterTypeDescription
image_pathstrThe path to the image to take as a resource.

create_image

Creates a new image resource out of stream.

Returns

New image resource.

def create_image(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe stream containing the image to take as a resource.

See Also