odrick / free-tex-packer

Free texture packer
http://free-tex-packer.com/
MIT License
897 stars 161 forks source link

Save relative path to images in project file *.ftpp #47

Closed alexvoz closed 4 years ago

alexvoz commented 4 years ago
{
    "name": "image.png",
    "path": "D:/.../pic/image.png",
    "folder": ""
},

If image folder change name or location - project opens empty. Maybe it is probably worth adding a chackbox parameter - save relative paths (relative to the project file). some like:

{
    "name": "image.png",
    "path": "pic/image.png",
    "folder": ""
},
{
    "name": "icon.png",
    "path": "../icons/icon.png",
    "folder": ""
},

Then project and images can be send to other computer and can be opened their.

alexvoz commented 4 years ago

Yes, if project file change location - images files can't be find. So can be made a separate parameter

alexvoz commented 4 years ago

Same for folders.

"folders": [
    "pic/icons",
    "../../pic4sprite"
  ],
alexvoz commented 4 years ago

Ups. Duplicate of https://github.com/odrick/free-tex-packer/issues/35