streamlit-drawable-canvas icon indicating copy to clipboard operation
streamlit-drawable-canvas copied to clipboard

Images as URL in 0.9.0 don't work in Streamlit Cloud

Open andfanilo opened this issue 2 years ago • 2 comments

Any people stumbling on this deploying to Streamlit Cloud, please downgrade to 0.8.0 in the meantime

Probably some odd referring stuff?

image

should expect:

image

andfanilo avatar Feb 26 '22 09:02 andfanilo

I think it's because default URL in code is start with /media/...., when it read by browser, it will get wrong URL.

Any scripts in Streamlit cloud are in subpath of domain but in hosted are not.

I believe if we can change /media/... to media/... it's will be solved this problem.

this line of code you have to investigate streamlit_drawable_canvas/frontend/src/DrawableCanvas.tsx#L116

kapong avatar Mar 23 '22 11:03 kapong

@andfanilo thanks for looking into it. Just a question, though: In my issue, I'm not using any URLs. My image is basically a variable created within the script with no possible path-issues attached.

chraibi avatar Apr 30 '22 16:04 chraibi