Does gm have a command to find out the raster images boundary, and remove transparent area outside this boundary?
Try this command:
gm convert input.png -trim +repage output.png
input:
output:
Join Stack Overflow to learn, share knowledge, and build your career.
Does gm have a command to find out the raster images boundary, and remove transparent area outside this boundary?
Try this command:
gm convert input.png -trim +repage output.png
input:
output: