{"id":19458751,"url":"https://github.com/lchsk/simplepacker","last_synced_at":"2025-04-25T06:30:34.084Z","repository":{"id":28171231,"uuid":"31672499","full_name":"lchsk/simplepacker","owner":"lchsk","description":"Command-line tool that can create sprite sheets/sprite atlases","archived":false,"fork":false,"pushed_at":"2022-12-07T23:58:39.000Z","size":255,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T01:03:52.573Z","etag":null,"topics":["game-development","gamedev","packer","python","spritesheet","spritesheet-packer","texturepacker"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lchsk.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":"2015-03-04T18:22:03.000Z","updated_at":"2021-11-15T03:25:08.000Z","dependencies_parsed_at":"2023-01-14T08:16:56.591Z","dependency_job_id":null,"html_url":"https://github.com/lchsk/simplepacker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimplepacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimplepacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimplepacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimplepacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lchsk","download_url":"https://codeload.github.com/lchsk/simplepacker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250766969,"owners_count":21483897,"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":["game-development","gamedev","packer","python","spritesheet","spritesheet-packer","texturepacker"],"created_at":"2024-11-10T17:28:25.008Z","updated_at":"2025-04-25T06:30:33.565Z","avatar_url":"https://github.com/lchsk.png","language":"Python","readme":"# simplepacker\n\nSimplepacker is a command-line tool that can create sprite sheets/sprite atlases.\n\n[![codecov](https://codecov.io/gh/lchsk/simplepacker/branch/master/graph/badge.svg)](https://codecov.io/gh/lchsk/simplepacker)\n[![Build Status](https://travis-ci.org/lchsk/simplepacker.svg?branch=master)](https://travis-ci.org/lchsk/simplepacker)\n\n# Installation\n\n```\n$ pip install simplepacker\n```\n\n# Basic use\n\nPack images from `./examples` directory.\n\n```\n$ simplepacker -i ./examples -o output1.jpg\n```\n\n[![simplepacker output1](./examples/output/output1.1.jpg)]\n\nSet maximum height, padding and generate a json file with metadata.\n\n```\n$ simplepacker -i ./examples -o output2.jpg --height 200 --padding 5 --json\n```\n\n[![simplepacker output1](./examples/output/output2.1.jpg)]\n\nResulting json file:\n\n```\n{\"feynman\": {\"x\": 0, \"y\": 0, \"w\": 100, \"h\": 141, \"name\": \"feynman\", \"ext\": \".jpg\", \"image\": \"output2.1.jpg\"}, \"curie_sklodowska\": {\"x\": 105, \"y\": 0, \"w\": 100, \"h\": 132, \"name\": \"curie_sklodowska\", \"ext\": \".jpg\", \"image\": \"output2.1.jpg\"}, \"einstein\": {\"x\": 210, \"y\": 0, \"w\": 100, \"h\": 131, \"name\": \"einstein\", \"ext\": \".jpg\", \"image\": \"output2.1.jpg\"}}\n```\n\nWith `--css` argument it can also generate CSS output.\n\n# Arguments\n\n|Argument|Description|\n|---|---|\n|`-h, --help`|See help screen|\n|`-i, --input`|Input directory|\n|`--width`|Maximum output width|\n|`--height`|Maximum output height|\n|`-p, --padding`|Padding|\n|`-m, --margin`|Margin|\n|`--css`|Generate CSS output|\n|`--json`|Generate JSON output|\n|`--use-params`|Use `.params` JSON files to add metadata to output JSONs|\n|`--create-params-files`|Create an empty `.params` file for each input image|\n|`--dont-resize-output`|Output images will always be equal to parameters set by `--width` and `--height`|\n|`--sort-alphabetically`|Sort input images by name|","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flchsk%2Fsimplepacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flchsk%2Fsimplepacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flchsk%2Fsimplepacker/lists"}