I’m looking to create a Modal Image in this example.
So the point is to enlarge an image on click and then have the option to close it. I’m currently using this method of show images on my dashboard.
import dash_html_components as html
app = dash.Dash()
image_filename = ‘my-image.png’ # replace with your own image
encoded_image = base64.b64encode(open(image_filename, ‘rb’).read())
app.layout = html.Div([
if name == ‘main’:
Advice? Thanks in advance.