Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position of the cropper #18

Open
benjamin-taheri opened this issue Jan 17, 2023 · 2 comments
Open

Position of the cropper #18

benjamin-taheri opened this issue Jan 17, 2023 · 2 comments

Comments

@benjamin-taheri
Copy link

Is it possible to place the cropper in the st.columns()? Or adjust the position of the thumbnail also on the right of the original image?

@JPereira-FJB
Copy link

Additionally, the cropper doesn't seem to be responsive. When placing the copper in a column, and decreasing the width of the page, the cropper itself is ... well ... cropped!

@turner-anderson
Copy link
Owner

I think the most recent release makes the cropper work a little nicer with columns. The biggest remaining issue is that the cropper doesn't have awareness of the container size streamlit has set up for it before drawing the canvas. By default, I resize all images to no more than the 700x700, but this should probably be something like 350x700 if in 2 columns, and so on. That said, for now the best way to handle this is if you want the image in a column you could resize yourself before passing so that it's no larger than a certain size.

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

No branches or pull requests

3 participants