streamlit components for image viewer
Project description
Streamlit Image Viewer
Streamlit component for image viewer.
Features
- You can easily view the images in a folder side by side
- Multiple rows and columns are supported
- Support for displaying images in multiple rows and columns
Install
pip install streamlit-image-viewer
Example Usage
from glob import glob
from streamlit_image_viewer import image_viewer
import streamlit as st
st.title("ImageViewer App")
st.title("Sample Images")
image_path_list = glob('../../image/*.jpg') + glob('../../image/*.png')
image_viewer(image_path_list, ncol=3, nrow=2, key="image_viewer")
API
image_viewer(
image_path_list: List[str],
ncol: int = 2,
nrow: int = 2,
key: Optional[str] = None
)
- image_path_list : A list containing the paths to the image files
- ncol : number of columns
- nrow : number of rows
- key : An optional string to use as the unique key for the widget. Assign a key so the component is not remount every time the script is rerun.
References
- Streamlit-Image-Annotation
- Streamlit Components Doc
- streamlit-template
- Sample Images are downloaded from Pixabay
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_image_viewer-0.1.1.tar.gz.
File metadata
- Download URL: streamlit_image_viewer-0.1.1.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f434a434daa9a75018601a316096e51560cfb4c58b04cb128ce6fbebd57d1b4f
|
|
| MD5 |
8c5ae6a80ce6d7aa9d47dc259cafb3b3
|
|
| BLAKE2b-256 |
5df99c5f6a6a33f9b9a93da002c68118867c4002f0924560e216f158352ecd68
|
File details
Details for the file streamlit_image_viewer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_image_viewer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435662848598313280a8f1b297f2f700a030feacfae82df5545664cab3c2d093
|
|
| MD5 |
2dc575c0200f0f63b0a97fd748ec37dd
|
|
| BLAKE2b-256 |
dc55f6f55886dbcc710acb04bf2dc318aa57675779782726c06614d3105b0ccf
|