INDIE DEVELOPERS DISCOUNT Independent developers get 50% discount on single user licenses for TP, PE and SI Visit store

Batch converting and optimizing images for web and games in Windows

Since 2.1.9 the windows version of TexturePacker also comes with command line support (I had no time yet to implement file globbing using e.g. *.png) But you can use dos batch files to help you with this.

First you need to add the TexturePacker's bin directory to your path. Here you find 2 versions of TexturePacker: TexturePacker which is the command line version and TexturePackerGUI which is the "old" graphical user interface.

Updating all your sprite sheets at once

With this simple batch file you can update all sprite sheets from the settings in the *.tps files in one folder:

@echo off
for %%X in (*.tps) do (C:\Programme\TexturePacker\bin\TexturePacker.exe  %%X)

Mass conversion of files

Write a simple batch file containing these lines to do as mass conversion of images:

@echo off
for %%X in (*.png) do (C:\Programme\TexturePacker\bin\TexturePacker.exe  <parameters>  %%X)

Please replace <parameters> with your parameters needed.

Did you like the tutorial? Please share!