Thanks, that worked.
I ended up writing a bash script and using imagemagick, because I don't understand TexturePacker's license and didn't want to buy it, and ShoeBox doesn't run on Linux. For anyone who's interested, the following will pad all files in the current directory and save them into the output/ subdirectory.
Code: Select all
#!/bin/bash
mkdir -p output
for file in *.png
do
convert -size 130x130 xc:none \
$file -background none -repage +1+1 \
\( -clone 1 -crop 1x1+1+1 -repage +0+0 \) \
\( -clone 1 -crop 1x1+128+128 -repage +129+129 \) \
\( -clone 1 -crop 1x1+1+128 -repage +0+129 \) \
\( -clone 1 -crop 1x1+128+1 -repage +129+0 \) \
\( -clone 1 -crop 128x1+1+1 -repage +1+0 \) \
\( -clone 1 -crop 128x1+1+128 -repage +1+129 \) \
\( -clone 1 -crop 1x128+1+1 -repage +0+1 \) \
\( -clone 1 -crop 1x128+128+1 -repage +129+1 \) \
-flatten \
-set colorspace RGB output/$file
done
After that, I used Gimp to put the files back together (cause I needed a special order).
Gimp has a nice feature: you can set up a grid by going to "Image->Configure Grid..." and then setting width and height to your tile size. Then enable snap to grid and show the grid (both in the "view" menu). Now you can open all tiles as layers (File->Open as Layers) and simply drag them into their position.