Automatically stretch out the 1px edge of each tile in a sprite sheet to compensate for tile bleed in 2D game development.
This script uses ImageMagick.
Make sure your script is in the same directory as the file, open Terminal and cd
to this folder and run (as an example):
sh bleed.sh environment_grass png _bleed 128 128 16
(sh bleed.sh FILE_NAME FILE_TYPE NEW_SUFFIX WIDTH HEIGHT TILE_SIZE
)
Create a script to run this on all files called *_working.png
(for example) - Loop files, get each image dimensions, run bleed.sh with that info.