Transparent trim

Detect transparent pixels around characters and icons and keep only the needed area.

Supported formats

PNG and WebP with transparency are best suited.

使用方法

  1. Choose a transparent image file.
  2. Press the button to remove unnecessary transparent edges.
  3. The resulting PNG downloads automatically.

如何检测透明边界

工具扫描图像的 Alpha 通道,找到包含所有 Alpha 值大于 0 像素的最小矩形,然后按该矩形裁剪并导出新的 PNG。

为什么很淡的阴影也会保留

只要像素不是完全透明,就会被视为可见。因此很淡的阴影、发光或一个半透明杂点都可能扩大裁剪范围。需要更紧凑的裁剪时,请先在编辑器中清理不需要的边缘像素。

动画帧还需要一个额外步骤

对每个动画帧单独裁剪会改变各帧的画布原点。如果裁剪了一组帧,请在播放或重新合并图集前使用枢轴对齐工具,保持角色参考点一致。

Limitations

Semi-transparent shadows count as visible pixels. Fully transparent images cannot be processed.

FAQ

会修改原文件吗?

不会。会生成新的 PNG 文件。

画质会下降吗?

仅执行裁剪,因此像素质量保持不变。

相关工具