Ways to increase size in of images using st.slider

I was wondering if there is a way to increase the size of a graph network (images) using st.slider?

Hi @peaches , thanks for posting your question. We love hearing from the community!

Is this demo basically what you’re looking for?

import streamlit as st

from PIL import Image

width = st.slider('What is the width in pixels?', 0, 700, 350)

#put your own image here
image = Image.open('test.png')

st.image(image, caption='test', width=width)

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