gamcoh / st-card

Streamlit component for UI cards
https://pypi.org/project/streamlit-card/
MIT License
116 stars 19 forks source link

Which type of image can I use for "image" attribute? #7

Closed johnnyb1509 closed 1 year ago

johnnyb1509 commented 1 year ago

Hi authors,

I'm using your package but cannot change any local image instead of your's example. Specifically, I have tried read some type of image such as .jpg and .png by using PIL.Image, but then it shows an error of cannot serialize as bellow

MarshallComponentException: ('Could not convert component args to JSON', TypeError('Object of type PngImageFile is not JSON serializable'))

How can I fix this

gamcoh commented 1 year ago

Hi there, I think this is a duplicate of this #5

johnnyb1509 commented 1 year ago

Hi there, I think this is a duplicate of this #5

Yes, thank you so much!