Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite sheet JSON exporter outputs full filesystem path in meta.image #1606

SaxxonPike opened this issue Nov 8, 2017 · 1 comment


None yet
2 participants
Copy link

commented Nov 8, 2017

I propose replacing the absolute filesystem path in meta.image with a relative path instead.

When exporting a sprite sheet to JSON, the meta.image string contains the full filesystem path of the PNG image. Using absolute paths could reveal sensitive information about the machine on which the export was performed and also cause issues after moving files around if that information is used. Using relative paths instead would avoid this problem and make it easier for content management as well.

The workaround for now is to manually go in and remove this data from the exported JSON. Since making changes in Aseprite and exporting to a new sheet is a task we repeat very frequently, this effort adds up and also lends to making mistakes.

Here's an excerpt from a recently exported file using the Steam release:

    "meta": {
        "app": "",
        "version": "1.2.4-x64",
        "image": "C:\\Users\\Saxxon\\Documents\\Sprite-0002.png",
        "format": "I8",

Here's that same excerpt with the proposed change:

    "meta": {
        "app": "",
        "version": "1.2.4-x64",
        "image": "Sprite-0002.png",
        "format": "I8",

Thanks for your time!

Aseprite and System version

  • Aseprite version: v1.2.4 Steam
  • System: Windows 10 x64

This comment has been minimized.

Copy link

commented Nov 8, 2017

Taking note about this one. A temporary fix would be to use the CLI from the C:\Users\Saxxon\Documents\ directory in this case (which it looks will generated your desired output):

C:\>cd C:\Users\Saxxon\Documents
C:\Users\Saxxon\Documents>"C:\Program Files (x86)\Steam\steamapps\common\Aseprite\aseprite.exe" -b Sprite-0002.ase --data Sprite-0002.json --sheet Sprite-0002.png

@dacap dacap added this to the v1.2 milestone Nov 8, 2017

@dacap dacap self-assigned this Nov 8, 2017

@dacap dacap added the persistence label Nov 17, 2017

@dacap dacap modified the milestones: v1.2, v1.x-bugs Dec 11, 2018

@dacap dacap referenced this issue Feb 14, 2019


Aseprite v1.2.12 #1997

15 of 49 tasks complete

@dacap dacap removed their assignment Feb 14, 2019

@dacap dacap closed this in ca1728f Apr 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.