{"id":28855377,"url":"https://github.com/gyk4j/carrot","last_synced_at":"2025-09-24T15:33:27.304Z","repository":{"id":294995133,"uuid":"988726070","full_name":"gyk4j/carrot","owner":"gyk4j","description":"Crop, Adjust, Resize, ROTate","archived":false,"fork":false,"pushed_at":"2025-09-24T03:43:21.000Z","size":149,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T05:31:29.026Z","etag":null,"topics":["image-processing","libvips","pillow-library","pyvips","tkinter-gui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gyk4j.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-23T01:40:22.000Z","updated_at":"2025-09-24T03:43:23.000Z","dependencies_parsed_at":"2025-07-01T03:28:50.763Z","dependency_job_id":"a36d7165-1a5a-4733-9402-d1ff519dade0","html_url":"https://github.com/gyk4j/carrot","commit_stats":null,"previous_names":["gyk4j/car","gyk4j/carrot"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gyk4j/carrot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyk4j%2Fcarrot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyk4j%2Fcarrot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyk4j%2Fcarrot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyk4j%2Fcarrot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gyk4j","download_url":"https://codeload.github.com/gyk4j/carrot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyk4j%2Fcarrot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276774792,"owners_count":25702686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["image-processing","libvips","pillow-library","pyvips","tkinter-gui"],"created_at":"2025-06-19T23:04:41.764Z","updated_at":"2025-09-24T15:33:27.298Z","avatar_url":"https://github.com/gyk4j.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Python build](https://github.com/gyk4j/carrot/actions/workflows/python-app.yml/badge.svg)](https://github.com/gyk4j/carrot/actions/workflows/python-app.yml)\n\n# carrot\n\n*Crop And Resize* is a Python script to crop and resize JPEG photos using the \nhigh-speed [libvips](https://www.libvips.org/) image processing library with \nlow memory needs.\n\nCurrently, it is only packaged and tested for Windows platform, but there is \nnothing platform-specific. Linux build and instructions can be produced and \ntested if needed. \n\n# Developer Guide\n\n## Setup\n\n```shell\npy -m venv .venv\n.venv\\Scripts\\activate.bat\npip install build\npip install pyinstaller\npip install pyvips\npip install cx_Freeze==6.15.16\n\n# Download/copy pre-compiled DLLs for libvips\nmkdir .\\carrot\\lib64\n#copy carrot\\venv\\Lib\\site-packages\\libvips-42-a64e1348d8f8d46219492aea226fbd74.dll lib64\\libvips-42.dll\ncurl -O https://github.com/libvips/libvips/releases/download/v8.10.5/vips-dev-w64-all-8.10.5.zip\nunzip -d %TEMP% vips-dev-w64-all-8.10.5.zip\nmkdir .\\carrot\\lib64\\libvips\ncopy %TEMP%\\vips-dev-8.10\\bin\\*.dll .\\carrot\\lib64\\libvips\n```\n\n## Build Python Wheel Package\n```shell\npy -m build\n```\n\nCheck that files are produced:\n\n1. `dist\\carrot-0.0.1.tar.gz`\n2. `dist\\carrot-0.0.1-py3-none-any.whl`\n\n## Build PyInstaller Package \n```shell\ncd carrot\n#cd src/carrot\n#pyinstaller -w carrot.py\n#pyinstaller --onefile -w carrot.py\n#pyinstaller -w --add-binary=\"lib64:.\" --add-data=\"*.jpg:.\" carrot.py\n#cd ../..\npyinstaller carrot.spec\n```\n\nCheck that one of the files are produced:\n\n1. `dist\\carrot\\carrot.exe`\n2. `dist\\carrot.exe`\n\n## Build cx_Freeze Package\n```shell\ncd carrot\n# py setup.py build\n# cxfreeze --script=src\\carrot\\carrot.py --base=gui\n# py setup.py build_exe ...\n# cxfreeze build\npy -m setup build\n```\n\nCheck that one of the files are produced:\n\n1. `build\\exe.win-amd64-3.8\\carrot.exe`\n\n## Cleanup\n\nExit from the virtual environment.\n\n```shell\n.venv\\Scripts\\deactivate.bat\n```\n\n## Run\n\nStart the \n\n```shell\n.\\dist\\carrot\\carrot.exe\n.\\dist\\carrot.exe\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyk4j%2Fcarrot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgyk4j%2Fcarrot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyk4j%2Fcarrot/lists"}