{"id":20508401,"url":"https://github.com/lxxorz/image-joiner","last_synced_at":"2025-03-05T22:18:47.976Z","repository":{"id":189432265,"uuid":"680390428","full_name":"lxxorz/image-joiner","owner":"lxxorz","description":"image joiner based on grid layout","archived":false,"fork":false,"pushed_at":"2023-08-28T01:01:40.000Z","size":1143,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T22:45:34.351Z","etag":null,"topics":["grid","image","join","nodejs","sharp"],"latest_commit_sha":null,"homepage":"https://github.com/lxxorz/image-joiner","language":"TypeScript","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/lxxorz.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}},"created_at":"2023-08-19T05:04:40.000Z","updated_at":"2024-04-10T04:25:11.000Z","dependencies_parsed_at":"2023-08-20T03:38:58.811Z","dependency_job_id":null,"html_url":"https://github.com/lxxorz/image-joiner","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.04761904761904767,"last_synced_commit":"5e5252588430889d222d67fee6c43044d2493416"},"previous_names":["lxxorz/image-joiner"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxxorz%2Fimage-joiner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxxorz%2Fimage-joiner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxxorz%2Fimage-joiner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxxorz%2Fimage-joiner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lxxorz","download_url":"https://codeload.github.com/lxxorz/image-joiner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242111470,"owners_count":20073435,"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":["grid","image","join","nodejs","sharp"],"created_at":"2024-11-15T20:18:26.815Z","updated_at":"2025-03-05T22:18:47.954Z","avatar_url":"https://github.com/lxxorz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-joiner 🖼️\n\nFast and Easy node.js Image join Tool.\n\n## Install\n\n```sh\npnpm add sharp image-joiner\n```\n## Features\n\n- Based on grid layout\n- Easy and fast ⚡\n\n## Usage\n\n```ts\nimport { GridImageJoiner } from 'image-joiner'\n\nconst joiner = new GridImageJoiner(2, 2)\n\njoiner.loadImageFromLocal(\"./image.jpg\", {\n  row: 0,\n  col: 0,\n})\n\njoiner.loadImageFromLocal(\"./image.jpg\", {\n  row: 1,\n  col: 1,\n})\n\njoiner\n  .draw({\n    background_color: { r: 0, g: 122, b: 40, alpha: 0.2},\n  })\n  .then((image) =\u003e image.toFormat('png').toFile('output.png'))\n\n```\n\n## Load image from an existing image object\n\n```ts\njoiner.loadImageFromObj(image, options)\n```\n\n## Grid Item Options\n\nYou can specify the row_space and col_space of a grid item\n\n```ts\nexport interface GridItemOption {\n  row: number;\n  col: number;\n  row_space?: number; // default 1\n  col_space?: number; // default 1\n  order?: number; // default 1\n}\n```\n\n## Draw Options\n\n```ts\nexport type DrawOptions = {\n  resize?: {\n    width: number;\n    height: number;\n  };\n  row_gap?: number;\n  col_gap?: number;\n  background_color?: Color;\n}\n```\n\n![](examples/base.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxxorz%2Fimage-joiner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flxxorz%2Fimage-joiner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxxorz%2Fimage-joiner/lists"}