auto crop question

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
crowfoot

auto crop question

Post by crowfoot »

Hi there,

I have a large transparent png with a small object in the middle. can and what code do I need to use autocrop to trim down to the bounds of the object in the middle?

thanks
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: auto crop question

Post by Bonzo »

-trim should work ?

convert input.png -trim output.png
Post Reply