-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from dangkhoasdc/feature/save_as_png
save buffer to PNG format instead
- Loading branch information
Showing
5 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import streamlit as st | ||
from PIL import Image | ||
|
||
from streamlit_image_coordinates import streamlit_image_coordinates | ||
|
||
st.set_page_config( | ||
page_title="Streamlit Image Coordinates", | ||
page_icon="🎯", | ||
layout="wide", | ||
) | ||
|
||
"# :dart: Streamlit Image Coordinates" | ||
|
||
st.code("pip install streamlit-image-coordinates") | ||
|
||
"Try clicking on the image below" | ||
|
||
st.write("# PNG with Transparency Example") | ||
|
||
with st.echo("below"): | ||
value = streamlit_image_coordinates( | ||
Image.open("kitty.png"), | ||
width=250, | ||
key="png", | ||
) | ||
|
||
st.write(value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setuptools.setup( | ||
name="streamlit-image-coordinates", | ||
version="0.1.3", | ||
version="0.1.4", | ||
author="Zachary Blackwood", | ||
author_email="[email protected]", | ||
description=( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters