Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show preview images in st.file_uploader #8578

Open
2 tasks done
jrieke opened this issue Apr 28, 2024 · 1 comment
Open
2 tasks done

Show preview images in st.file_uploader #8578

jrieke opened this issue Apr 28, 2024 · 1 comment
Labels
feature:st.file_uploader type:enhancement Requests for feature enhancements or new features

Comments

@jrieke
Copy link
Collaborator

jrieke commented Apr 28, 2024

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

When uploading an image in st.file_uploader, it shows a generic file icon for the uploaded image, see below. We could show a little preview of the image instead.

CleanShot 2024-04-28 at 04 00 25@2x

Why?

Just a nice little UX improvement :)

How?

Whenever the uploaded file is an image, replace the file icon in the file uploader with a preview image. We could also do the same thing for documents, e.g., if you upload a PDF, show a preview of the first page.

Additional Context

No response

@jrieke jrieke added type:enhancement Requests for feature enhancements or new features feature:st.file_uploader labels Apr 28, 2024
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.file_uploader type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

1 participant