# 1.2.21-x64 cli 'title' does not export correctly

**URL:** https://community.aseprite.org/t/1-2-21-x64-cli-title-does-not-export-correctly/6231
**Category:** Bug Reports
**Created:** [June 22, 2020, 7:47pm UTC](https://community.aseprite.org/t/1-2-21-x64-cli-title-does-not-export-correctly/6231 "2020-06-22T19:47:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![beakus](https://community.aseprite.org/letter_avatar/beakus/32/5_5575768a8748004e209b776fc1b2916d.png) [@beakus](https://community.aseprite.org/u/beakus)
#### Post date: [June 22, 2020, 7:47pm UTC](https://community.aseprite.org/t/1-2-21-x64-cli-title-does-not-export-correctly/6231/1 "2020-06-22T19:47:04Z")

</div>

Using the {title} --file-format value isn’t working correctly.

The command I issued is:  
“aseprite -b asteroids.aseprite --trim --save-as {title}/{layer}.png”

I expected the output to be one folder named ‘{title}’ with four images inside.  
What I get is four folders each named ‘{layer}’ with one image inside.

---

<div class="post-metadata">

### Author: ![dacap](https://community.aseprite.org/user_avatar/community.aseprite.org/dacap/32/10_2.png) [@dacap](https://community.aseprite.org/u/dacap)
#### Post date: [June 24, 2020, 4:19pm UTC](https://community.aseprite.org/t/1-2-21-x64-cli-title-does-not-export-correctly/6231/2 "2020-06-24T16:19:26Z")

</div>

Welcome @beakus, I’ll take a look to this issue.

---

<div class="post-metadata">

### Author: ![dacap](https://community.aseprite.org/user_avatar/community.aseprite.org/dacap/32/10_2.png) [@dacap](https://community.aseprite.org/u/dacap)
#### Post date: [June 24, 2020, 6:25pm UTC](https://community.aseprite.org/t/1-2-21-x64-cli-title-does-not-export-correctly/6231/3 "2020-06-24T18:25:01Z")

</div>

Actually the current implementation is confusing. We should use `-filename-format` in these cases. (The special format `{layer}` and `{frame}` where added in a later stage to `-save-as` parameter, so `-filename-format` is the one that should works.) For example:

```
aseprite -b -split-layers asteroids.aseprite -filename-format "{title}/{layer}.png" -save-as asteroids.png

```

Anyway I’ll take note to fix this in a future release because it should work directly from `-save-as` (the `-filename-format` makes more sense to complete the filename of the JSON `-data` output than for `-save-as`).
