Tiled Export Plugins
ZLIB License
A collection of Tiled extensions to assist with exporting Tiled map data.
The following is a list of the extensions included in this pack:
The Embed JSON Map Format Tiled plugin will embed all images directly in the JSON format, Base64 encoded, as *.embed.json
files. It will add the image
data to a base64 encoded data URI scheme imagedata
property, along add the size of the image to imagesize
.
{
"image": "desert.png"
}
{
"image": "desert.png",
"imagedata": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"imagesize": 37830
}
The Minified JSON Map Format Tiled plugin will export minified JSON files *.min.json
, to decrease the output file size by removing the whitespace. This can already be accomplished by using Tiled's "Minimize output", but having the explicit file format allows you force minification if desired, despite Tiled's settings.
{ "compressionlevel":-1,
"height":40,
"infinite":false,
"layers":[
{
"data":[...
{"compressionlevel":-1,"height":40,"infinite":false,"layers":[{"data":[...
To install the extensions...
Open Tiled and go to Edit > Preferences > Plugins and click the Open button to open the extensions directory.
Extract the files to your extensions directory. The scripts can be directly in the extensions directory or a subdirectory. Alternatively, clone this git repository into the extensions directory:
C:/Users/%USERNAME%/AppData/Local/Tiled/extensions/
~/Library/Preferences/Tiled/extensions/
~/.config/tiled/extensions/
See the script itself for specific plugin usage instructions
Unless stated otherwise, all works are:
... and licensed under: