{"id":21901214,"url":"https://github.com/koraygocmen/image","last_synced_at":"2026-02-12T04:57:41.725Z","repository":{"id":57552635,"uuid":"140036780","full_name":"KorayGocmen/image","owner":"KorayGocmen","description":"A simple library for image operations with concurrency written in Go. ","archived":false,"fork":false,"pushed_at":"2022-04-11T12:46:45.000Z","size":4722,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T11:52:08.128Z","etag":null,"topics":["go","golang","image","image-manipulation","image-processing","rgb"],"latest_commit_sha":null,"homepage":"","language":"Go","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/KorayGocmen.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}},"created_at":"2018-07-06T23:02:56.000Z","updated_at":"2022-04-11T12:46:48.000Z","dependencies_parsed_at":"2022-09-26T18:50:41.870Z","dependency_job_id":null,"html_url":"https://github.com/KorayGocmen/image","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/KorayGocmen%2Fimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorayGocmen%2Fimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorayGocmen%2Fimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorayGocmen%2Fimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KorayGocmen","download_url":"https://codeload.github.com/KorayGocmen/image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246684452,"owners_count":20817442,"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":["go","golang","image","image-manipulation","image-processing","rgb"],"created_at":"2024-11-28T15:12:43.691Z","updated_at":"2026-02-12T04:57:41.683Z","avatar_url":"https://github.com/KorayGocmen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `image`\n\n Package image implements a simple library for image operations. The library can work with pngs or jpgs. Same functions can be used for both of those image types.\n \nRead more here:\nhttp://www.koraygocmen.com/blog/writing-an-image-manipulation-library-in-go-part-1\n\n98% Test coverage\n\n---\n#### Full Documentation:\n\nhttps://godoc.org/github.com/KorayGocmen/image\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/koraygocmen/image\"\n)\n\nfunc main() {\n\timg, _ := image.New(\"test/test.jpg\")\n\n\terr1 := img.Grayscale(image.GrayscaleAverage).WriteToFile(\"test/grayscale_average_method.jpg\")\n\tif err1 != nil {\n\t\tlog.Fatal(err1)\n\t}\n\n\terr2 := img.Grayscale(image.GrayscaleDesaturation).WriteToFile(\"test/grayscale_saturation_method.jpg\")\n\tif err2 != nil {\n\t\tlog.Fatal(err2)\n\t}\n\n\terr3 := img.Grayscale(image.GrayscaleLuma).WriteToFile(\"test/grayscale_luma_method.jpg\")\n\tif err3 != nil {\n\t\tlog.Fatal(err3)\n\t}\n\n\terr4 := img.Filter(\"R\", 2).WriteToFile(\"test/red_color_filtered_200_percent.jpg\")\n\tif err4 != nil {\n\t\tlog.Fatal(err4)\n\t}\n\n\t// Works both with pngs and jpgs.\n\timgPng, _ := image.New(\"test/test.png\")\n\tfmt.Println(imgPng.Height, imgPng.Width)\n}\n\n```\n\n---\n\n### License\n\nReleased under the [MIT License](https://github.com/KorayGocmen/image/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoraygocmen%2Fimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoraygocmen%2Fimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoraygocmen%2Fimage/lists"}