{"id":13413179,"url":"https://github.com/marekm4/color-extractor","last_synced_at":"2025-12-30T00:48:47.733Z","repository":{"id":29563453,"uuid":"121009883","full_name":"marekm4/color-extractor","owner":"marekm4","description":"Simple image color extractor written in Go with no external dependencies","archived":false,"fork":false,"pushed_at":"2023-07-19T08:39:11.000Z","size":45324,"stargazers_count":94,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T06:51:17.423Z","etag":null,"topics":["color-extraction","golang","image","palette-generation"],"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/marekm4.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}},"created_at":"2018-02-10T11:32:37.000Z","updated_at":"2024-11-15T23:00:09.000Z","dependencies_parsed_at":"2024-01-08T15:34:37.345Z","dependency_job_id":null,"html_url":"https://github.com/marekm4/color-extractor","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekm4%2Fcolor-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekm4%2Fcolor-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekm4%2Fcolor-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekm4%2Fcolor-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marekm4","download_url":"https://codeload.github.com/marekm4/color-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635263,"owners_count":20322906,"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":["color-extraction","golang","image","palette-generation"],"created_at":"2024-07-30T20:01:34.534Z","updated_at":"2025-12-30T00:48:47.692Z","avatar_url":"https://github.com/marekm4.png","language":"Go","funding_links":[],"categories":["Images","图片"],"sub_categories":["Search and Analytic Databases","检索及分析资料库"],"readme":"Simple image color extractor written in Go with no external dependencies.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/marekm4/color-extractor.svg)](https://pkg.go.dev/github.com/marekm4/color-extractor)\n[![Go Report Card](https://goreportcard.com/badge/github.com/marekm4/color-extractor)](https://goreportcard.com/report/github.com/marekm4/color-extractor)\n[![Go Coverage](https://github.com/marekm4/color-extractor/wiki/coverage.svg)](https://raw.githack.com/wiki/marekm4/color-extractor/coverage.html)\n\nDemo:\n\nhttps://color-extractor-demo.marekm4.com/\n\nBlog post:\n\nhttps://medium.com/@marek.michalik/c-vs-rust-vs-go-performance-analysis-945ab749056c\n\nUsage:\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"image\"\n\t_ \"image/jpeg\"\n\t\"os\"\n\n\t\"github.com/marekm4/color-extractor\"\n)\n\nfunc main() {\n\tfile := \"Fotolia_45549559_320_480.jpg\"\n\timageFile, _ := os.Open(file)\n\tdefer imageFile.Close()\n\n\timage, _, _ := image.Decode(imageFile)\n\tcolors := color_extractor.ExtractColors(image)\n\n\tfmt.Println(colors)\n}\n```\n\nExample image:\n\n![Image](https://raw.githubusercontent.com/marekm4/color-extractor/master/example/Fotolia_45549559_320_480.jpg)\n\nExtracted colors:\n\n![Colors](https://raw.githubusercontent.com/marekm4/color-extractor/master/example/colors.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekm4%2Fcolor-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarekm4%2Fcolor-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekm4%2Fcolor-extractor/lists"}