{"id":17217844,"url":"https://github.com/fzipp/texturepacker","last_synced_at":"2025-08-09T20:17:32.131Z","repository":{"id":57513722,"uuid":"242045626","full_name":"fzipp/texturepacker","owner":"fzipp","description":"Read sprite sheets created and exported as JSON by TexturePacker.","archived":false,"fork":false,"pushed_at":"2022-06-05T05:16:11.000Z","size":60,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T18:22:29.494Z","etag":null,"topics":["go","golang","sprite-sheet","spritesheet","texture-atlas","texture-packer","texturepacker"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fzipp.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":"2020-02-21T03:27:44.000Z","updated_at":"2024-11-09T08:34:55.000Z","dependencies_parsed_at":"2022-09-26T17:51:28.988Z","dependency_job_id":null,"html_url":"https://github.com/fzipp/texturepacker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzipp%2Ftexturepacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzipp%2Ftexturepacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzipp%2Ftexturepacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzipp%2Ftexturepacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fzipp","download_url":"https://codeload.github.com/fzipp/texturepacker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456386,"owners_count":21106607,"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":["go","golang","sprite-sheet","spritesheet","texture-atlas","texture-packer","texturepacker"],"created_at":"2024-10-15T03:44:49.778Z","updated_at":"2025-04-11T18:22:34.756Z","avatar_url":"https://github.com/fzipp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# texturepacker\n\nPackage texturepacker reads sprite sheets created and exported as JSON by\n[TexturePacker](https://www.codeandweb.com/texturepacker).\n\nAdd it to a module as a dependency via:\n\n```\ngo get github.com/fzipp/texturepacker\n```\n\n## Documentation\n\nPackage documentation is available [on pkg.go.dev](https://pkg.go.dev/github.com/fzipp/texturepacker?tab=doc).\n\n## Example usage\n\nCreate a sprite sheet with TexturePacker and and save it in \"JSON (Hash)\" format.\n\n![TexturePacker format selection dialog](doc/jsonhashformat.png?raw=true \"TexturePacker format selection dialog\")\n\n```go\npackage main\n\nimport (\n\t\"image\"\n\t_ \"image/png\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/fzipp/texturepacker\"\n)\n\nfunc main() {\n\tsheet, err := texturepacker.SheetFromFile(\"ExampleSheet.json\", texturepacker.FormatJSONHash{})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\timageFile, err := os.Open(sheet.Meta.Image)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer imageFile.Close()\n\timg, _, err := image.Decode(imageFile)\n\tsheetImage, ok := img.(image.RGBA)\n\tif !ok {\n\t\tlog.Fatal(\"expected RGBA image\")\n\t}\n\tfor name, sprite := range sheet.Sprites {\n\t\tspriteImage := sheetImage.SubImage(sprite.Frame)\n\t\t// ...\n\t}\n}\n```\n\n## License\n\nThis project is free and open source software licensed under the\n[BSD 3-Clause License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffzipp%2Ftexturepacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffzipp%2Ftexturepacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffzipp%2Ftexturepacker/lists"}