Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

brainprep.reporting.utils.png_image_to_base64

brainprep.reporting.utils.png_image_to_base64(image_path)[source]

Embed an image.

Parameters:
image_path: File

An image to display.

Returns:
embed: str

Binary image string.