{"id":20229084,"url":"https://github.com/dacap/export-aseprite-file","last_synced_at":"2025-06-21T07:06:42.040Z","repository":{"id":45242860,"uuid":"306422950","full_name":"dacap/export-aseprite-file","owner":"dacap","description":"Little Aseprite script to export the data inside a .aseprite","archived":false,"fork":false,"pushed_at":"2024-09-10T14:01:24.000Z","size":9,"stargazers_count":33,"open_issues_count":5,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-16T20:58:50.437Z","etag":null,"topics":["aseprite","pixel-art"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dacap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-22T18:14:40.000Z","updated_at":"2025-05-29T10:31:21.000Z","dependencies_parsed_at":"2024-11-14T07:34:16.255Z","dependency_job_id":"3cedd8f0-e760-4138-a099-1e30286a729a","html_url":"https://github.com/dacap/export-aseprite-file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dacap/export-aseprite-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fexport-aseprite-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fexport-aseprite-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fexport-aseprite-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fexport-aseprite-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacap","download_url":"https://codeload.github.com/dacap/export-aseprite-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fexport-aseprite-file/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261080569,"owners_count":23106598,"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":["aseprite","pixel-art"],"created_at":"2024-11-14T07:34:12.263Z","updated_at":"2025-06-21T07:06:37.010Z","avatar_url":"https://github.com/dacap.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# export-aseprite-file\n\n\u003e by David Capello\n\nThis is a script that can be used to export the data from a\n`.aseprite` file into a JSON + a collection of PNG files.  This script\nwill work with Aseprite v1.2.26 and support the future v1.3 to export\ntilemap/tileset data.\n\n## Example\n\nUsage:\n\n    aseprite -b map.aseprite -script export.lua\n\nIn this example `export.lua` will create a folder named `map` with\nsome files inside:\n\n```\nmap/\n  sprite.json\n  image1.png\n  image2.png\n  tileset1.png\n```\n\nAn example of `map/sprite.json` content:\n\n```json\n{\n  \"filename\": \"map.aseprite\",\n  \"width\": 32,\n  \"height\": 32,\n  \"frames\": [\n    { \"duration\": 0.1 },\n    { \"duration\": 0.15 }\n  ],\n  \"layers\": [\n    {\n      \"name\": \"Group Layer\",\n      \"layers\": [\n        {\n          \"name\": \"Common Layer\",\n          \"cels\": [\n            {\n              \"bounds\": { \"x\": 10, \"y\": 13, \"width\": 12, \"height\": 13 },\n              \"frame\": 0,\n              \"image\": \"map/image1.png\"\n            },\n            {\n              \"bounds\": { \"x\": 6, \"y\": 15, \"width\": 12, \"height\": 12 },\n              \"frame\": 1,\n              \"image\": \"map/image2.png\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"Tilemap Layer\",\n      \"tileset\": 0,\n      \"cels\": [\n        {\n          \"bounds\": { \"x\": 0, \"y\": 0, \"width\": 32, \"height\": 32 },\n          \"data\": \"text1\",\n          \"frame\": 0,\n          \"tilemap\": {\n            \"width\": 4,\n            \"height\": 4,\n            \"tiles\": [\n              0, 1, 2, 3,\n              4, 5, 5, 6,\n              7, 5, 5, 8,\n              9, 10, 11, 12\n            ]\n          }\n        },\n        {\n          \"bounds\": { \"x\": 1, \"y\": 1, \"width\": 32, \"height\": 32 },\n          \"frame\": 1,\n          \"color\": \"#f7a547\",\n          \"data\": \"text2\",\n          \"tilemap\": {\n            \"width\": 4,\n            \"height\": 4,\n            \"tiles\": [\n              0, 1, 1, 3,\n              4, 4, 4, 8,\n              4, 4, 4, 8,\n              9, 10, 10, 12\n            ]\n          }\n        }\n      ]\n    }\n  ],\n  \"tilesets\": [\n    {\n      \"grid\": {\n        \"tileSize\": { \"width\": 8, \"height\": 8 }\n      },\n      \"image\": \"map/tileset1.png\"\n    }\n  ],\n  \"tags\": [\n    {\n      \"name\": \"Tag A\",\n      \"aniDir\": \"pingpong\",\n      \"color\": \"#000000\",\n      \"from\": 0,\n      \"to\": 2\n    },\n    {\n      \"name\": \"Tag B\",\n      \"aniDir\": \"forward\",\n      \"color\": \"#000000\",\n      \"from\": 0,\n      \"to\": 1\n    },\n    {\n      \"name\": \"Tag C\",\n      \"aniDir\": \"reverse\",\n      \"color\": \"#000000\",\n      \"from\": 1,\n      \"to\": 2\n    }\n  ],\n  \"slices\": [\n    {\n      \"name\": \"Slice 1\",\n      \"color\": \"#0000ff\",\n      \"bounds\": { \"x\": 4, \"y\": 19, \"width\": 8, \"height\": 6 }\n    },\n    {\n      \"name\": \"Slice 2\",\n      \"color\": \"#0000ff\",\n      \"bounds\": { \"x\": 14, \"y\": 9, \"width\": 9, \"height\": 11 },\n      \"center\": { \"x\": 1, \"y\": 1, \"width\": 7, \"height\": 9 }\n    },\n    {\n      \"name\": \"Slice 3\",\n      \"color\": \"#0000ff\",\n      \"data\": \"text3\",\n      \"bounds\": { \"x\": 17, \"y\": 23, \"width\": 8, \"height\": 7 },\n      \"pivot\": { \"x\": 4, \"y\": 2 }\n    }\n  ]\n}\n```\n\n## Acknowledges\n\nThis project uses [json.lua](https://github.com/rxi/json.lua) by\n[rxi](https://github.com/rxi) to export Lua tables to JSON files.\n\n## License\n\nThis code is distributed under the terms of the MIT license. You can\nuse this code for your own purpose to export the specific data that\nyou need.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Fexport-aseprite-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacap%2Fexport-aseprite-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Fexport-aseprite-file/lists"}