1Export Formats
2==============
3
4While there are many :doc:`libraries and frameworks
5</reference/support-for-tmx-maps>` that work directly with Tiled maps, Tiled
6also supports a number of additional file and export formats, as well as
7:ref:`exporting a map to an image <export-as-image>`.
8
9Exporting can be done by clicking *File > Export*. When triggering the menu
10action multiple times, Tiled will only ask for the file name the first time.
11Exporting can also be automated using the ``--export-map`` and
12``--export-tileset`` command-line parameters.
13
14Several :ref:`export-options` are available, which are applied to maps
15or tilesets before they are exported (without affecting the map
16or tileset itself).
17
18.. toctree::
19   :maxdepth: 2
20   :caption: Supported Formats
21
22   export-generic
23   export-defold
24   export-gmx
25   export-yy
26   export-tbin
27   export-other
28   export-custom
29   export-image
30
31.. note::
32
33   When exporting on the command-line on Linux, Tiled will still need an
34   X server to run. To automate exports in a headless environment, you
35   can use a headless X server such as `Xvfb`_. In this case you would
36   run Tiled from the command-line as follows:
37
38   ::
39
40      xvfb-run tiled --export-map ...
41
42.. _Xvfb: https://www.x.org/archive/X11R7.6/doc/man/man1/Xvfb.1.xhtml
43