{"id":18153440,"url":"https://github.com/thinknathan/node-image-slice","last_synced_at":"2025-04-07T00:52:56.846Z","repository":{"id":213184575,"uuid":"733256457","full_name":"thinknathan/node-image-slice","owner":"thinknathan","description":"Command-line tool that slices images and outputs the segments","archived":false,"fork":false,"pushed_at":"2025-03-01T15:50:49.000Z","size":475,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T16:32:17.830Z","etag":null,"topics":["cli-tool","gamedev-tool","image-slicer","node-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinknathan.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":"2023-12-18T23:15:38.000Z","updated_at":"2025-03-01T15:50:46.000Z","dependencies_parsed_at":"2024-01-05T04:42:18.046Z","dependency_job_id":"8955003d-6446-4d27-a391-2f6e4ecefe88","html_url":"https://github.com/thinknathan/node-image-slice","commit_stats":null,"previous_names":["thinknathan/node-image-slice"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fnode-image-slice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fnode-image-slice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fnode-image-slice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fnode-image-slice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinknathan","download_url":"https://codeload.github.com/thinknathan/node-image-slice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247574097,"owners_count":20960495,"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":["cli-tool","gamedev-tool","image-slicer","node-cli"],"created_at":"2024-11-02T03:07:02.449Z","updated_at":"2025-04-07T00:52:56.820Z","avatar_url":"https://github.com/thinknathan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"_docs/simple-image-slicer.png\" alt=\"Simple Image Slicer\"\u003e\n\n# Simple Image Slicer\n\n[![CI](https://github.com/thinknathan/node-image-slice/actions/workflows/ci.yml/badge.svg)](https://github.com/thinknathan/node-image-slice/actions/workflows/ci.yml) ![GitHub License](https://img.shields.io/github/license/thinknathan/node-image-slice)\n\nCommand-line utility that slices input images into segments according to specified width and height, and outputs those segments into a folder.\n\n## Install\n\n1. Install [Nodejs](https://nodejs.org/en) or equivalent\n\n2. Clone this project\n   `git clone https://github.com/thinknathan/node-image-slice`\n\n3. Install dependencies\n   `npm i`\n   or\n   `yarn`\n\n4. Install for command-line usage\n   `npm link`\n\n## Usage\n\n`slice`\n\n```\n-f, --filename      Input image filename                              [string]\n-i, --folderPath    Input folder                                      [string]\n-w, --width         Width of each slice                    [number] [required]\n-h, --height        Height of each slice                              [number]\n-d, --canvasWidth   Width of canvas for final output                  [number]\n-g, --canvasHeight  Height of canvas for final output                 [number]\n-s, --scale         Rescale the image up or down by this factor, after\n\t\t\t\t\t\t\t\t\t\tslicing, but before canvas resize    [number] [default: 1]\n-c, --cubic         Uses bicubic interpolation instead of nearest neighbour if\n\t\t\t\t\t\t\t\t\t\trescaling                       [boolean] [default: false]\n```\n\n- If `filename` does not include an extension, `.png`, `.gif`, `.jpg` and `.jpeg` will be guessed\n- Valid input formats: `jpeg`, `png`, `bmp`, `tiff`, `gif`\n- Output format is `.png`\n- If `height` is not specified, `width` will be used as `height`\n\n## Background\n\nCreated with Chat-GPT 3.5.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Fnode-image-slice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinknathan%2Fnode-image-slice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Fnode-image-slice/lists"}