{"id":34054293,"url":"https://github.com/erjieyong/streamlit-cropperjs","last_synced_at":"2026-04-09T00:02:40.793Z","repository":{"id":180398288,"uuid":"665069658","full_name":"erjieyong/streamlit-cropperjs","owner":"erjieyong","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-14T03:45:32.000Z","size":736,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T20:17:44.026Z","etag":null,"topics":["streamlit-components"],"latest_commit_sha":null,"homepage":"https://github.com/erjieyong/streamlit-cropperjs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erjieyong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-11T11:16:46.000Z","updated_at":"2025-01-06T18:43:06.000Z","dependencies_parsed_at":"2024-04-14T04:36:16.695Z","dependency_job_id":"0cbfac30-0e6e-47a0-97f3-687f0a15dfe4","html_url":"https://github.com/erjieyong/streamlit-cropperjs","commit_stats":null,"previous_names":["erjieyong/streamlit-cropperjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erjieyong/streamlit-cropperjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erjieyong%2Fstreamlit-cropperjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erjieyong%2Fstreamlit-cropperjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erjieyong%2Fstreamlit-cropperjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erjieyong%2Fstreamlit-cropperjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erjieyong","download_url":"https://codeload.github.com/erjieyong/streamlit-cropperjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erjieyong%2Fstreamlit-cropperjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["streamlit-components"],"created_at":"2025-12-14T02:04:56.922Z","updated_at":"2026-04-09T00:02:40.783Z","avatar_url":"https://github.com/erjieyong.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamlit-cropperjs\n\nIntegrating the amazing [cropperjs](https://github.com/fengyuanchen/cropperjs) with streamlit. \n\nThis streamlit module is primarily built with mobile usage in mind.\n\n![](https://github.com/erjieyong/streamlit-cropperjs/blob/main/streamlit-cropperjs-demo.gif)\n## Demo\nAccess the demo app here: [https://st-cropperjs.streamlit.app/](https://st-cropperjs.streamlit.app/)\n\n## Installation\n`pip install streamlit-cropperjs`\n\n## Example\n```\nimport streamlit as st\n\nfrom streamlit_cropperjs import st_cropperjs\n\npic = st.file_uploader(\"Upload a picture\", key=\"uploaded_pic\")\nif pic:\n    pic = pic.read()\n    cropped_pic = st_cropperjs(pic=pic, btn_text=\"Detect!\", key=\"foo\")\n    if cropped_pic:\n        st.image(cropped_pic, output_format=\"PNG\")\n```\n## Features\n- Crop and return image data\n- Supports touch (mobile)\n- Supports cropping on demand with a button (customised button text)\n\n## Future Development\n- Support for all cropperjs options\n- Support for cropperjs v2\n\n## References\n[https://github.com/fengyuanchen/cropperjs](https://github.com/fengyuanchen/cropperjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferjieyong%2Fstreamlit-cropperjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferjieyong%2Fstreamlit-cropperjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferjieyong%2Fstreamlit-cropperjs/lists"}