Page 1 of 1

Feature request: optional color parameter for -trim

Posted: 2015-04-04T00:02:30-07:00
by Lebostein
I know, there are komplex workarounds for that problem. But why you don't add an optional color paramerer to the trim function to trim a specific color? I think this is a very often used function, but with that auto color detection not praticable in most cases.

Re: Feature request: optional color parameter for -trim

Posted: 2015-06-24T09:42:49-07:00
by fmw42
Perhaps you can explain further how this helps. Can you upload an example image to dropbox.com and put the URL here? Then explain what you are trying to achieve by adding a color to -trim.

You can add a border around the image of the desired color, then do a trim to achieve what I think you might want to do.

Code: Select all

convert image -bordercolor yourcolor -border 1 -trim +repage resultimage