How to resize Images rendered in dataframe?


I have a project that needs to render images in the dataframe table. I was able to get it running and it works well but the problem is that by default the size of the images rendered is too small and it doesn’t satisfy the use case. Is there a way I can override the css to increase the size of the images rendered by default?
I tried overriding the css for img tag but it seems that it does not work as on inspecting element, there was no img tag.

Increasing width in the column config for image just changes the width, height still remains the same

  • Streamlit version:1.26.0
  • Python version: 3.10
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version: Mac 13.5
  • Browser version:
  • Link to your GitHub repo: It is a private internal app
  • Link to your deployed app:
1 Like

Hi @AyushExel,

Thanks for posting!

I think you double-posted the same question on this post as well:

I provided a response to the other post. Let me know if the suggestion helped. If not, please provide a code snippet for your code so we can help with troubleshooting.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.