Skip to content

Enable selection of multiple images#11

Open
ayoubassis wants to merge 7 commits into
jrieke:mainfrom
ayoubassis:main
Open

Enable selection of multiple images#11
ayoubassis wants to merge 7 commits into
jrieke:mainfrom
ayoubassis:main

Conversation

@ayoubassis
Copy link
Copy Markdown

Changes:

  • select multiple images by default: index arg became indices
  • by default no image is selected
  • image_select return list of images instead of a single image, subsequently, the list is empty when no image is selected

TODO:

  • update changelog in Readme.md

fixes #1

@jrieke
Copy link
Copy Markdown
Owner

jrieke commented May 22, 2023

Sorry, have seen this and your email but extremely oversubscribed with work right now. I'll make a task on my todo list to look through this once the most important projects have wrapped up but no guarantees!

@AyushExel
Copy link
Copy Markdown

AyushExel commented Jul 15, 2023

hi @jrieke it'd be great if this feature is added to the original package.
If not, could you please tell me how I can use this branch in my streamlit project? thanks!

@khronimo
Copy link
Copy Markdown

Hope this merge eventually gets looked at

@wjiang
Copy link
Copy Markdown

wjiang commented Aug 29, 2024

Hope that this pull request can be merged ASAP!

@PetervanLunteren
Copy link
Copy Markdown

PetervanLunteren commented Aug 10, 2025

I've forked the original repo and added the multiple image selection option under a new PyPi package st-img-picker.

https://pypi.org/project/st-img-picker/

Installation

pip install st-img-picker

Usage

import streamlit as st
from st_img_picker import img_picker

imgs = img_picker(
    "Select images", 
    ["image1.png", "image2.png", "image3.png"]
)
st.write(f"Selected {len(imgs)} images")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Select multiple images

7 participants