Hi everyone,
I deployed a Streamlit app that lets users upload a DXF file and manually draw room polygons over the floor plan.
Everything works fine locally, but after deployment on Streamlit Cloud I found a specific issue:
-
the DXF file uploads successfully
-
the editor dialog opens correctly
-
the drawing canvas appears
-
but the DXF floor plan background does not render
-
the canvas shows only a blank dark area
Technical context:
-
Python app with streamlit
-
using ezdxf to read the DXF
-
converting the DXF geometry into a PIL image
-
passing that image to streamlit-drawable-canvas as background_image
-
locally this works normally
-
in Streamlit Cloud the background image is blank, although the canvas itself still loads
I already handled a previous compatibility issue with streamlit-drawable-canvas and image_to_url, so now I suspect this may be related to:
-
streamlit-drawable-canvas behavior in deployed environments
-
PIL image background rendering inside st_canvas
-
or some limitation when used inside st.dialog
Has anyone faced something similar with:
-
streamlit-drawable-canvas
-
PIL background_image
-
DXF/image overlays
-
or canvas rendering differences between local and Streamlit Cloud?
Any suggestions, workarounds, or alternative approaches would be greatly appreciated.
Thanks in advance.