{"id":28289836,"url":"https://github.com/dillonstreator/imagecat","last_synced_at":"2025-06-13T06:31:43.664Z","repository":{"id":57660072,"uuid":"474743130","full_name":"dillonstreator/imagecat","owner":"dillonstreator","description":"Concatenate any number of images into a single image on x or y axis with optional alignment centering","archived":false,"fork":false,"pushed_at":"2023-05-19T13:30:39.000Z","size":498,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T02:11:40.901Z","etag":null,"topics":["concat","concatenation","golang","images"],"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/dillonstreator.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}},"created_at":"2022-03-27T19:49:09.000Z","updated_at":"2023-05-16T20:29:29.000Z","dependencies_parsed_at":"2024-06-20T05:40:35.370Z","dependency_job_id":"eebcea3b-aa00-428f-8607-9df3affbb24e","html_url":"https://github.com/dillonstreator/imagecat","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dillonstreator/imagecat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonstreator%2Fimagecat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonstreator%2Fimagecat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonstreator%2Fimagecat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonstreator%2Fimagecat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dillonstreator","download_url":"https://codeload.github.com/dillonstreator/imagecat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonstreator%2Fimagecat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259594227,"owners_count":22881624,"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":["concat","concatenation","golang","images"],"created_at":"2025-05-22T02:11:29.426Z","updated_at":"2025-06-13T06:31:43.655Z","avatar_url":"https://github.com/dillonstreator.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eimagecat\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eConcatenate images into a single image on x or y axis with optional alignment centering\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca aria-label=\"GoDoc\" href=\"https://pkg.go.dev/github.com/dillonstreator/imagecat/v3\"\u003e\n    \u003cimg alt=\"GoDoc badge\" src=\"https://godoc.org/github.com/dillonstreator/go-badge?status.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"GoDoc\" href=\"https://codecov.io/gh/dillonstreator/imagecat\"\u003e\n    \u003cimg alt=\"GoDoc badge\" src=\"https://codecov.io/gh/dillonstreator/imagecat/branch/main/graph/badge.svg?token=ML10BJJUZ6\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"GoReport\" href=\"https://goreportcard.com/report/github.com/dillonstreator/imagecat/v3\"\u003e\n    \u003cimg alt=\"GoReport badge\" src=\"https://img.shields.io/badge/go%20report-A+-brightgreen.svg?style=flat\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"GoReport\" href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg alt=\"GoReport badge\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```sh\ngo get github.com/dillonstreator/imagecat/v3\n```\n\n## Usage\n\n```go\nimport (\n    \"image\"\n\n    \"github.com/dillonstreator/imagecat/v3\"\n)\n\nfunc main () {\n\n    images := []image.Image{\n        // ... images\n    }\n\n    // concat on x-axis with no alignment\n    img, err := imagecat.Concat(images)\n    if err != nil { /* handle error */ }\n\n    // concat on y-axis with center alignment\n    img, err = imagecat.Concat(images, imagecat.WithAxis(imagecat.AxisY), imagecat.WithAlignment(imagecat.AlignmentCenter))\n    if err != nil { /* handle error */ }\n\n}\n```\n\n## Examples\n\n\u003cdiv\u003e\n    \u003ch3\u003eInput images\u003c/h3\u003e\n    \u003cp float=\"left\"\u003e\n      \u003cimg src=\"./resources/img1.jpeg\" width=\"100\" /\u003e\n      \u003cimg src=\"./resources/img2.jpeg\" width=\"100\" /\u003e\n      \u003cimg src=\"./resources/img3.jpeg\" width=\"100\" /\u003e\n    \u003c/p\u003e\n    \u003ctable\u003e\n      \u003ctr\u003e\n        \u003cth\u003e\u003c/th\u003e\n        \u003cth\u003eStart Alignment\u003c/th\u003e\n        \u003cth\u003eCenter Alignment\u003c/th\u003e\n        \u003cth\u003eEnd Alignment\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003cth\u003eX-axis\u003c/th\u003e\n        \u003ctd\u003e\u003cimg src=\"./resources/result.x.jpeg\" width=\"150\" /\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"./resources/result.x.center.jpeg\" width=\"150\" /\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"./resources/result.x.end.jpeg\" width=\"150\" /\u003e\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003cth\u003eY-axis\u003c/th\u003e\n        \u003ctd align=\"center\"\u003e\u003cimg src=\"./resources/result.y.jpeg\" height=\"150\" /\u003e\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003cimg src=\"./resources/result.y.center.jpeg\" height=\"150\" /\u003e\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003cimg src=\"./resources/result.y.end.jpeg\" height=\"150\" /\u003e\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/table\u003e\n\u003c/div\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillonstreator%2Fimagecat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdillonstreator%2Fimagecat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillonstreator%2Fimagecat/lists"}