Image cropping/ selection component

Most AI image classification tools need to resize or crop input images. Having a tool like this in streamlit will be really helpful. Is anyone working on a component for this?

2 Likes

Hey @johnyquest, welcome to the community !

Thanks for the request ! I don’t think anyone is looking into this for now :slight_smile:. Would Cropper.js fit the need, or do you know of other image cropper Javascript libraries ?

Anyone interested in trying to build a Streamlit Component, I think this one is a perfect usecase which should be easy to integrate (at least if referencing the image from an url. Uploading image data from Python may add a small bump to the implementation) !

Fanilo

1 Like

Hey @andfanilo.!
I have started working on an image cropping component for streamlit.
If everything goes well then, I’ll make a PULL request soon.
Thanks

5 Likes

That’s great ! Looking forward to it :slight_smile: don’t hesitate to ping for feedback :wink:

4 Likes

Great. Thanks for doing this.

Haven’t looked at cropper.js will take a look.
But it will be great to have an integrated streamlit component

@andfanilo I’m on it and it’s about to complete.

5 Likes

@0xPrateek eagerly waiting for the release :slightly_smiling_face: