Basic Batch Conversion
The simplest form of batch conversion is to convert a single file to another format:Processing Multiple Files
You can process multiple files in a single command:file1.pngfile2.pngfile3.png
Filename Templates
Use template variables in the output filename to customize the naming:Available Template Variables
{title}- File title (without extension){frame}- Frame number{tag}- Tag name{layer}- Layer name{group}- Group name{slice}- Slice name
Scaling Sprites
Resize sprites during conversion:Color Mode Conversion
Convert between different color modes:Dithering Algorithms
When converting to indexed color mode:none- No ditheringordered- Ordered dithering (requires matrix)old- Legacy dithering algorithmerror-diffusion- Error diffusion dithering
Dithering Matrices
For ordered dithering:bayer2x2- 2×2 Bayer matrixbayer4x4- 4×4 Bayer matrixbayer8x8- 8×8 Bayer matrixfilename.png- Custom matrix from PNG file
Palette Management
Change the palette of sprites:Cropping and Trimming
Crop to Specific Rectangle
--crop x,y,width,height
Trim Transparent Pixels
Crop to Slice
Layer Filtering
Export Specific Layers
Ignore Layers
Make All Layers Visible
Layer Wildcards
Use wildcards for layer matching:Tag-Based Export
Export specific animation tags:Frame Range Export
Export only specific frames:Automatic Template Detection
When you use templates in the filename, Aseprite automatically enables splitting:Advanced Examples
Convert all ASE files to PNG with scaling
Export only visible layers from multiple files
Convert to indexed color with custom palette
Process and trim sprites
Loading Options
Load Only First Frame
For faster processing when you only need the first frame:Scripting Integration
Execute Lua scripts during batch processing:app.params:
Error Handling
Aseprite will:- Print error messages to stderr
- Return a non-zero exit code on failure
- Continue processing other files if one fails (when processing multiple files)
--verbose or --debug flags to get more information about errors:

