2

enter image description here

Does gm have a command to find out the raster images boundary, and remove transparent area outside this boundary?

4

1 回答 1

2

试试这个命令:

gm convert input.png -trim +repage output.png

输入:

在此处输入图像描述

输出:

在此处输入图像描述

于 2013-11-11T12:00:10.143 回答