Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Does gm have a command to find out the raster images boundary, and remove transparent area outside this boundary?
试试这个命令:
gm convert input.png -trim +repage output.png
输入:
输出: