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

Support for extruded spritesheet exporting in --sheet-pack #2072

Closed
jobtalle opened this issue May 16, 2019 · 2 comments
Closed

Support for extruded spritesheet exporting in --sheet-pack #2072

jobtalle opened this issue May 16, 2019 · 2 comments
Assignees
Labels
cli feature Feature request, or something should be improved high priority persistence Issues about loading or saving files / persisting information on disk
Milestone

Comments

@jobtalle
Copy link

Issue #1890 implemented spritesheet extrusion, but it can currently only be used from the GUI as far as I'm aware; it would be great if one could export extruded spritesheets in combination with --sheet-pack through the CLI.

@dacap dacap self-assigned this May 16, 2019
@dacap dacap added the feature Feature request, or something should be improved label May 16, 2019
@dacap dacap added this to the v1.2 milestone May 16, 2019
@jobtalle
Copy link
Author

I've created a workaround until this issue is resolved: https://github.com/jobtalle/AtlasExtruder

It's just a simple python script that one can use during the build process. sheet-pack with --border-padding 1 --shape-padding 2 creates sheets with two pixel borders between frames; this script can be run after exporting to extrude the frames.

@Bunderant
Copy link

Bunderant commented Feb 19, 2020

I'm having issues with border-padding from the CLI, too, unfortunately.

The padding is only applied to the top and left sides of the sprite sheet, but this is only an issue when using the "trim" option. Shape padding is unaffected, thankfully. Anyone else having this problem? I'm on v1.2.16.3-x64, the Steam distribution. Here are the arguments I'm passing in:

-b --filename-format {title}_{tag}-{frame} --sheet-type packed --border-padding 1 --shape-padding 2 --sheet [...].png --format json-array --data [...].json

Edit: Found a Workaround

This is probably the "right" way to do it, anyway, giving the results I'd expect from --border-padding 1 --shape-padding 2, but works with --trim. Not sure whether this affects the JSON data, though, so your mileage may vary:

--inner-padding 1

@dacap dacap modified the milestones: v1.2, v1.3 Jun 13, 2020
@dacap dacap modified the milestones: v1.3, v1.3.0 Aug 18, 2022
@dacap dacap removed the wip label Aug 19, 2022
dacap added a commit to dacap/aseprite that referenced this issue Aug 19, 2022
@dacap dacap added persistence Issues about loading or saving files / persisting information on disk and removed performance labels Aug 19, 2022
@dacap dacap closed this as completed Aug 19, 2022
@dacap dacap modified the milestones: v1.3.0, v1.3-beta21 Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli feature Feature request, or something should be improved high priority persistence Issues about loading or saving files / persisting information on disk
Projects
None yet
Development

No branches or pull requests

3 participants