Automatic Sprite Pivot Alignment

Detect the visible character area across animation frames and align them to a shared pivot and canvas size.

For walk, idle, and attack animations, 底部中心 is usually the most stable choice. Bounds center or alpha-weighted centroid may work better for airborne objects and effects.

How it works

  1. Find the bounds of pixels whose alpha exceeds the selected threshold.
  2. Calculate each frame’s pivot using the selected mode.
  3. Calculate a shared canvas that does not crop any frame.
  4. Reposition every frame around the computed shared pivot.
  5. Select only the frames you need and save them together as a ZIP.

对齐方式

脚底中心以角色最低点和左右中心为基准,适合地面动画。不透明区域中心适合图标和旋转物体,Alpha 加权中心适合半透明特效。

Limitations

If shadows, weapons, capes, or other parts extend to the lowest pixels, the detected foot position may shift. Animations with large pose changes may still need manual adjustment after checking the automatic result.

相关工具

实际示例:统一原点不同的动画帧

使用Alpha阈值16和“脚底中心”分析4张帧图。与实际工具相同的计算结果是20×20px公共画布和(10, 20)公共枢轴。

对齐前 · 透明留白导致位置漂移
对齐前 · 透明留白导致位置漂移
对齐后 · 脚底中心落在同一坐标
对齐后 · 脚底中心落在同一坐标