Below is the example of st.columns options. using that three cols were created and images were added but the height of the images are different. Is there a way to align the column height.
This is not looking nice right… kindly suggest me a way forward. either my style or by streamlit code.
@sridharr , someone had attempted this before. See if this link helps you:
Hi! I’m working on a book recommendation system based on a LDA model and want to show the book options on one page. Right now I’m using st.image() and passing the list of images which comes from a column in the dataframe, and it looks like this:
st.image(filteredImages, width=150, caption=caption)
[Screen Shot 2021-03-10 at 1.13.59 PM]
I’m able to set the width but not the height, so all of them have different heights. I tried using the pillow library to resize each image but the run time in…
@Shawn_Pereira Thanks for the reply. In quoted case, images are in columns but suppose i want one column as image and another columns as dataframe or table then how should we maintain the same column height.
You would probably need use AG grid and set the height to the height of your picture. Regardless, you may need to resize your pictures so that they are of the same height.