I need a uniform transparency trim mode which keeps animation frames aligned!

TexturePacker doesn't support a trim mode that removes the same amount of transparent border from all sprite frames. This is because the frame with the largest non-transparent area would determine the amount of border to trim, leaving other frames with transparent borders, which results in poorly packed sprite sheets.

To achieve better results, follow these steps:

  • Click the Data format button at the top of the settings panel and select your framework. This ensures TexturePacker generates a data file alongside the sprite sheet, which contains information about the transparency removed from each sprite. Don't use "Sprite sheet only."

  • Choose the Trim or Polygon outline trim mode. This will remove as much transparency as possible from each sprite. However, when you load the sprite sheet into your game framework, the sprites will retain their original size and anchor points. Even if the frame sizes on the sheet vary due to trimming, animation frames will stay perfectly aligned.