Rendering a png at full resolution

I’m displaying a local png with the following:

# Header
logo = PIL.Image.open('./data/streamlit/ar1.png')
# st.markdown('![logo](./data/streamlit/ar1.png)') # this failed to display with a little broken file symbol
st.image(logo, width=700, output_format='png') # logo

However, it’s displaying at lower resolution than the original image. I had trouble using markdown as a workaround. Might you be able to advise on what the issue might be or how to use markdown?

Hi @Alex-Robson, did you try messing with the output_format argument but putting PNG in caps? I hope that’s not the issue, but the docs seem to indicate it’s uppercase

I hadn’t done all caps! Thanks that did the trick!

1 Like