How can i change the size of my image in plotly?

Hi,

How do i change the image size? I’ve used the below line of code to insert my image but i cannot seem to figure out how you make it smaller

html.Div(html.Img(src=app.get_asset_url('logo.png')))

i’ve tried:

html.Div(html.Img(src=app.get_asset_url('logo.png')),style={'height':'10%'})

any suggestions

1 Like

A complete guess is that your image is trying to fill out the whole width of the Div object it is placed in, so messing around with the height property will not change anything.
Try using style={'width: '10%'} instead and see what happens.