{"id":25959154,"url":"https://github.com/iqbaleff214/simple-go-image-processing","last_synced_at":"2026-05-19T10:04:26.607Z","repository":{"id":228683716,"uuid":"774138865","full_name":"iqbaleff214/simple-go-image-processing","owner":"iqbaleff214","description":"Simple Golang backend service with HTTP routes for image processing. ","archived":false,"fork":false,"pushed_at":"2024-03-20T00:55:09.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T18:36:43.372Z","etag":null,"topics":["fiber","go","gocv","golang","image-processing","opencv"],"latest_commit_sha":null,"homepage":"","language":"Go","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/iqbaleff214.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-19T02:21:01.000Z","updated_at":"2024-03-20T00:47:51.000Z","dependencies_parsed_at":"2024-06-21T02:18:44.140Z","dependency_job_id":"ec10e65c-f752-461e-a770-0a4714c0f75a","html_url":"https://github.com/iqbaleff214/simple-go-image-processing","commit_stats":null,"previous_names":["iqbaleff214/simple-go-image-processing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iqbaleff214/simple-go-image-processing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqbaleff214%2Fsimple-go-image-processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqbaleff214%2Fsimple-go-image-processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqbaleff214%2Fsimple-go-image-processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqbaleff214%2Fsimple-go-image-processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iqbaleff214","download_url":"https://codeload.github.com/iqbaleff214/simple-go-image-processing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqbaleff214%2Fsimple-go-image-processing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271462064,"owners_count":24763857,"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-08-21T02:00:08.990Z","response_time":74,"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":["fiber","go","gocv","golang","image-processing","opencv"],"created_at":"2025-03-04T18:28:14.368Z","updated_at":"2026-05-19T10:04:26.548Z","avatar_url":"https://github.com/iqbaleff214.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Image Processor\n\nGolang backend service with HTTP routes for image processing. This service has the following functionalities:\n\n- Convert image files from PNG to JPEG.\n- Resize images according to specified dimensions.\n- Compress images to reduce file size while maintaining reasonable quality.\n\n## Prerequisite\n\n- This project is built using [**Go version 1.21.0**](https://go.dev/dl/), and it is expected to be developed using this specific version of Golang to ensure the desired outcome.\n- Please ensure that OpenCV is installed on your computer, with a minimum version of [**OpenCV 4.7.0**](https://gocv.io/getting-started/).\n \n## How to Run\n\n- Install project dependencies using the command `go mod download`.\n- Run the service using the command `go run .` or `go run main.go`.\n\n## How to Build\n\nExecute the following command to build the binary:\n```shell\ngo build -ldflags \"-s -w\" -o ./out .\n```\n\nThen you can run the service using the command `./out`.\n\n## Usage\n\n### [POST] /converter\nConvert image file from PNG to JPEG.\n\n#### Request Body\n|          Name | Required |  Type   | Description                                                                                                                                                           |\n| -------------:|:--------:|:-------:| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n|     `image` | required | file  | The image file to be converted. \u003cbr/\u003e\u003cbr/\u003e Supported MIME type: `image/png`.                                                                     |\n\n#### Success response\nThe response will return an image file if successful.\n\n#### Error response\nThe response will be returned as JSON in case of an error. For example:\n```json\n{\n    \"code\": 400,\n    \"message\": \"You have to provide `image` field!\",\n    \"status\": \"error\"\n}\n```\n\n### [POST] /resizer\nResize image according to specified dimensions.\n\n#### Request Body\n| Name | Required | Type | Description |\n| ----:|:--------:|:----:| ----------- |\n| `image` | required | file | The image file to be converted. \u003cbr/\u003e\u003cbr/\u003e Supported MIME type: `image/png` and `image/jpeg`. |\n| `width` | required | integer  | Width dimension. |\n| `height` | required | integer  | Height dimension.|\n\n#### Success response\nThe response will return an image file if successful.\n\n#### Error response\nThe response will be returned as JSON in case of an error. For example:\n```json\n{\n    \"code\": 400,\n    \"message\": \"You have to provide `image` field!\",\n    \"status\": \"error\"\n}\n```\n\n### [POST] /compressor\nCompress image to reduce file size while maintaining reasonable quality.\n\n#### Request Body\n| Name | Required | Type | Description |\n| ----:|:--------:|:----:| ----------- |\n| `image` | required | file | The image file to be converted. \u003cbr/\u003e\u003cbr/\u003e Supported MIME type: `image/png` and `image/jpeg`. |\n\n#### Success response\nThe response will return an image file if successful.\n\n#### Error response\nThe response will be returned as JSON in case of an error. For example:\n```json\n{\n    \"code\": 400,\n    \"message\": \"You have to provide `image` field!\",\n    \"status\": \"error\"\n}\n```\n\n## Test\n\nExecute the following command to run the tests:\n```shell\ngo test -v .\n```\n\nTo run the tests with code coverage, execute the following command:\n```shell\ngo test -v -cover .\n```\n\nThe test coverage is at **84.2%**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqbaleff214%2Fsimple-go-image-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiqbaleff214%2Fsimple-go-image-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqbaleff214%2Fsimple-go-image-processing/lists"}