40 Commits

Author SHA1 Message Date
David Capello
60e8a5967d Minor changes to f24eb75298c118500ff4428661fe186eefdde2b2 2019-03-22 11:26:44 -03:00
David N Campo
f24eb75298 Add --trim-by-grid CLI option 2019-03-22 10:55:26 -03:00
David Capello
9e47b07219 Add TODO for --sheet-type 2019-01-09 20:40:47 -03:00
David Capello
b2cafe4108 lua: Add app.params and --script-param
Now parameters for scripts can be specified from the CLI with
--script-params and from gui.xml or .aseprite-keys from <param>
sections.
2018-12-10 16:45:30 -03:00
David N Campo
f6bb446031 Combination of CLI args results in jumbled layer order (fix #1644)
- The order is fixed because we now iterate a LayerList (a
  std::vector) instead of a SelectedLayers (a std::set)
- This can be an issue each time we iterate over a std::set (and
  SelectedLayers is a std::set) because it depends on the specific STL
  impl details (which vary depending on msvc/clang/gcc compiler).
- This fix iterates over layers, no matter if are visible or not
  (SelectedLayers::toLayerList() returns only browseable layers)
2018-11-12 09:06:59 -03:00
David Capello
b8317805f8 Rename DocumentExporter -> DocExporter 2018-07-14 23:02:37 -03:00
David Capello
9c79ea2b77 Rename app::Document -> Doc 2018-07-07 11:54:44 -03:00
David Capello
ac7e48d92d Rename DocumentUndo -> DocUndo 2018-07-07 02:55:27 -03:00
David Capello
139c5aac49 Add flag to compile CLI-only (fix #1279)
New cmake flag -DENABLE_UI=OFF can be used to turn off the GUI
and compile a CLI-only version of Aseprite.

Requested here too:
https://community.aseprite.org/t/1351
2018-05-07 00:11:50 -03:00
David Capello
e0a60b6748 Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
David Capello
eb3143ce21 Rename CommandsModule to Commands 2017-11-30 12:24:07 -03:00
David Capello
4fc19c5466 Change "old-ordered" dithering algorithm to just "old" 2017-05-23 14:56:06 -03:00
David Capello
5ef6aac925 Add --dithering-matrix CLI option
Now the dithering matrix used in ordered dithering algorithm is configurable.
2017-05-19 15:49:31 -03:00
David Capello
7eff2b83c4 Fail when an invalid algorithm is specified in --dithering-algorithm 2017-05-19 10:23:46 -03:00
David Capello
16aeae0833 Add new ordered dithering algorithm 2017-05-17 13:32:34 -03:00
David Capello
e4a4f44127 Add --color-mode CLI option 2017-05-15 15:21:02 -03:00
David Capello
cc7bde6cd1 Fix some compiler warnings (implicit casts & unused vars) 2017-04-19 19:26:23 -03:00
David Capello
2c0d0d3682 Add --slice and --split-slice CLI params (#721) 2017-04-11 18:45:51 -03:00
David Capello
347ccfbb78 Add --list-slices CLI option 2017-03-16 10:35:26 -03:00
David Capello
2e47bd1fbc Fix --ignore-layer: doesn't activate all hidden layers (fix #1264) 2016-12-06 11:06:08 -03:00
David Capello
4813936a3a Add --oneframe CLI param to load just one frame 2016-12-01 12:06:35 -03:00
David Capello
f57c298ad6 Merge branch 'master' into beta 2016-11-29 12:15:25 -03:00
David Capello
5c3f75c64b Merge branch 'master' into beta 2016-11-07 18:17:42 -03:00
David Capello
b84d0d843e Add --ignore-layer CLI option (fix #1264) 2016-09-23 10:46:31 -03:00
David Capello
a1ce0c5c73 Add support to specify multiple layers in CLI to export (fix #1174)
Now we can use --layer multiple times to modify the --save-as and
--sheet behavior to render only the filtered/selected layers. This can
be combined with --split-layers too.
2016-09-16 15:19:47 -03:00
David Capello
f4b5340dfb Fix export of groups/layers via CLI
We have to propagate show/hide layers/groups visibility properly to
export them correctly. We use the same code that in the "Export Sprite
Sheet" for this (a new RestoreVisibleLayers class is separated for
this).
2016-09-16 11:15:47 -03:00
David Capello
682e9b8307 Add support to specify {group} in filename format 2016-09-16 09:04:37 -03:00
David Capello
3a9c2e8325 Fix "Export Sprite Sheet" for selected frames/layers
Now we can export a give group, layer, and (non-adjacent) selected
layers/frames.
2016-09-13 16:10:36 -03:00
David Capello
4749001473 Now --palette changes the palette of the last sprite (fix #1245) 2016-09-05 11:59:25 -03:00
David Capello
20b726f73b Merge branch 'master' into beta 2016-08-31 19:53:52 -03:00
David Capello
7b55037abb Replace LayersRange with Sprite::all*Layers() members 2016-06-21 12:02:31 -03:00
David Capello
a478efd616 Add support to use --frame-tag and --frame-range at the same time 2016-06-06 17:47:47 -03:00
David Capello
04f67a1697 Automatic split layers/tags if we use {layer} or {tag} in --save-as (fix #1149) 2016-06-06 16:28:49 -03:00
David Capello
617afaed78 Centralize default filename format computation
Use get_default_filename_format() to get the default filename format on
all cases.
2016-06-06 13:57:35 -03:00
David Capello
feadacbf61 Add --split-tags to save each tag as a different file 2016-06-02 13:22:08 -03:00
David Capello
fa044f8253 Fix double undo needed when --crop and --trim are used 2016-06-02 00:09:05 -03:00
David Capello
da856f432e Support frame ranges saving file sequences
Now we can use --frame-tag or --frame-range with --save-as option to
save sequence-like formats (e.g. png, pcx, bmp, one image files).
2016-06-01 14:49:24 -03:00
David Capello
fac2997099 Convert CliOpenFile::frameRange -> frameFrom/To
This change was done to avoid calling split_string() each time we want
to know the frame range. (As the frame range will be used in several
parts of the code.)
2016-05-31 16:55:41 -03:00
David Capello
67bbb22410 Delete temporal tags created in the CLI processor
When a DocumentExporter is used to export a specific range of frames
from the CLI processor, a temporal frame tag is created, we've to delete
that tag when the DocumentExporter is destroyed.
2016-05-31 15:07:26 -03:00
David Capello
9a0035e2a7 Refactor CLI
We’ve moved the cli into its own directory (src/app/cli). Also, we’ve
added a new “--preview” parameter to know what will be done using the
given command line options.
2016-05-30 19:03:28 -03:00