{"id":22347543,"url":"https://github.com/chand1012/imagecropapi","last_synced_at":"2025-07-30T04:33:20.402Z","repository":{"id":52414396,"uuid":"299414467","full_name":"chand1012/ImageCropAPI","owner":"chand1012","description":"Simple image crop microservice written in Python FastAPI.","archived":false,"fork":false,"pushed_at":"2022-09-22T18:34:06.000Z","size":34,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T05:55:43.705Z","etag":null,"topics":["api","api-rest","image-processing","microservice","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chand1012.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"chand1012","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-09-28T19:42:57.000Z","updated_at":"2023-09-27T02:32:04.000Z","dependencies_parsed_at":"2023-01-18T19:17:07.231Z","dependency_job_id":null,"html_url":"https://github.com/chand1012/ImageCropAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chand1012%2FImageCropAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chand1012%2FImageCropAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chand1012%2FImageCropAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chand1012%2FImageCropAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chand1012","download_url":"https://codeload.github.com/chand1012/ImageCropAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228088827,"owners_count":17867481,"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","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":["api","api-rest","image-processing","microservice","python","python3"],"created_at":"2024-12-04T10:09:45.878Z","updated_at":"2024-12-04T10:09:46.541Z","avatar_url":"https://github.com/chand1012.png","language":"Python","readme":"# ImageCrop API\n\nA simple Microservice API that can crop, resize, and convert images.\n\n# Usage\n\nAll of the endpoints can be accessed without an API key and can be used with either a GET or a POST request. If a GET request is used, then parameters must be added a a query string. If a POST request is used, then the parameters must be in the body of the request. All endpoints are accessed at https://image-crop-api.fly.dev/ . \n\nThe documentation can be accessed by going to [this docs page](https://image-crop-api.fly.dev/docs). Each function and variable is pretty self explanatory. There is also a a \"Try it out\" feature available on the documentation in the top right of the endpoint dropdown.\n\n# Hosting Yourself\n\nThe application can be hosted one of two ways, either by running inside a virtual environment, or via Docker. Currently the only way to host on a non-Linux Operating System is via Docker, as a few of the dependencies don't support anything but Linux. \n\n# Host via Docker.\n\n## Pre Built Images\n\n```bash\ndocker run ghcr.io/chand1012/image-crop-api:master -p 5000:5000\n```\n\n## Building the Docker Image.\n\nIf you are trying to run the application on a platform other than a 64-bit x86 Linux system, such as for a Raspberry Pi or M1 Mac, you can build the Docker Image with the following:\n\n```Bash\n# This is assuming you have Docker installed.\ngit clone https://github.com/chand1012/ImageCropAPI.git\ncd ImageCropAPI\ndocker build . -t image-crop-api:master # This will take about 20 minutes\ndocker run image-crop-api:master 5000:5000\n```\n\nDocker installation instructions found [here](https://docs.docker.com/get-docker/).\n\n# Running from Source.\n\nThis has been tested on Ubuntu 18.04LTS only. Should work the same on Ubuntu 20.04LTS as well.\n\n```Bash\n# this is for Ubuntu Linux. \n# Install equivalent packages for your preferred distribution.\nsudo apt update\nsudo apt install python3-pip python3-dev build-essential \ngit clone https://github.com/chand1012/ImageCropAPI.git\ncd ImageCropAPI\nsudo pip3 install virtualenv \npython3 -m venv env\nsource env/bin/activate\npip3 install -r requirements.txt\ndeactivate\n```\n\nTo run the application, you must use the virtual environment installed to the application. If you would rather run with the system Python installation, just skip the `virtualenv` steps and install the modules with `pip3 install -r requirements.txt` . This will work on Python \u003e= 3.6.\n\nTo run the application:\n\n```Bash\n# assuming you are in the same directory as the application\nsource env/bin/activate\nuvicorn main:app --reload\n```\n","funding_links":["https://github.com/sponsors/chand1012"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchand1012%2Fimagecropapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchand1012%2Fimagecropapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchand1012%2Fimagecropapi/lists"}