import streamlit as st from PIL import Image file = st.file_uploader('Upload An Image') with Image.open(file) as img: st.write(file) st.write(img.size)