utils.img_conversion
convert_image_to_img_source
def convert_image_to_img_source(image_file: str) -> str
Loads an image file and base64-encodes it as an HTML 'img' source.
Notes:
The file ending is used as the source file type.
Arguments:
image_file- The image file to load.
Returns:
The 'img' source attribute.