Skip to content

Commit 5351ac9

Browse files
committed
Add new CLI options in v1.3-beta21
1 parent 4c426bb commit 5351ac9

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

cli.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Options:
5555
a separated image in the sheet
5656
--<a href="#split-tags">split-tags</a> Save each tag as a separated file
5757
--<a href="#split-slices">split-slices</a> Save each slice as a separated file
58+
--<a href="#split-grid">split-grid</a> Save each grid tile as a separated file
5859
--<a href="#layer">layer</a> &lt;name&gt; or
5960
--<a href="#layer">import-layer</a> &lt;name&gt; Include just the given layer in the sheet
6061
--<a href="#all-layers">all-layers</a> Make all layers visible
@@ -68,7 +69,11 @@ Options:
6869
--<a href="#border-padding">border-padding</a> &lt;value&gt; Add padding on the texture borders
6970
--<a href="#shape-padding">shape-padding</a> &lt;value&gt; Add padding between frames
7071
--<a href="#inner-padding">inner-padding</a> &lt;value&gt; Add padding inside each frame
71-
--<a href="#trim">trim</a> Trim all images before exporting
72+
--<a href="#trim">trim</a> Trim whole sprite for --save-as
73+
or individual frames for --sheet
74+
--<a href="#trim-sprite">trim-sprite</a> Trim the whole sprite (for --save-as and --sheet)
75+
--<a href="#trim-by-grid">trim-by-grid</a> Trim all images by its correspondent grid boundaries before exporting
76+
--<a href="#extrude">extrude</a> Extrude all images duplicating all edges one pixel
7277
--<a href="#crop">crop</a> x,y,width,height Crop all the images to the given rectangle
7378
--<a href="#slice">slice</a> &lt;name&gt; Crop the sprite to the given slice area
7479
--<a href="#filename-format">filename-format</a> &lt;fmt&gt; Special format to generate filenames
@@ -83,6 +88,7 @@ Options:
8388
--<a href="#list-slices">list-slices</a> List slices of the next given sprite sprite
8489
or include slices in JSON data
8590
--<a href="#oneframe">oneframe</a> Load just the first frame
91+
--<a href="#export-tileset">export-tileset</a> Export only tilesets from visible tilemap layers
8692
-v, --<a href="#verbose">verbose</a> Explain what is being done
8793
--<a href="#debug">debug</a> Extreme verbose mode and copy log to desktop
8894
-?, --<a href="#help">help</a> Display this help and exits
@@ -299,6 +305,14 @@ files. It affects the [--save-as](#save-as) option. Same as doing:
299305

300306
aseprite.exe -b sheet.ase --save-as part-{slice}.png
301307

308+
## --split-grid
309+
310+
aseprite -b --split-grid tilemaps.png --sheet tiles.png
311+
312+
Since **v1.3-beta21**: Indicates that [--sheet](#sheet) should export
313+
each grid cell of the given file as a separate sprite in the sprite
314+
sheet.
315+
302316
## --layer
303317

304318
Selects just one layer to be exported (hides all other layers). It
@@ -399,6 +413,11 @@ options.
399413
Exports only the specified rectangle from all sprites/layers/cels. It
400414
affects [--sheet](#sheet) and [--save-as](#save-as) options.
401415

416+
## --extrude
417+
418+
Since **v1.2-beta21**: Extrudes all images/sprites that are going to
419+
be exported with [--sheet](#sheet) duplicating all edges one pixel.
420+
402421
## --slice
403422

404423
Since **v1.2-beta8**:
@@ -562,6 +581,13 @@ useful to load just one frame in a image sequence (e.g. loading just
562581
to load just the first frame of a full animation (e.g. useful to
563582
create a thumbnail of the animation).
564583

584+
## --export-tileset
585+
586+
aseprite -b --export-tileset tilemaps.aseprite --sheet tilesets-sprite-sheet.png
587+
588+
Since **v1.3-beta21**: Indicates that [--sheet](#sheet) should export
589+
tilesets of the visible/filtered layers in the given sprite.
590+
565591
## --debug
566592

567593
If you execute Aseprite with the `--debug` parameter in the command

0 commit comments

Comments
 (0)