Feature request: optional color parameter for -trim
Feature request: optional color parameter for -trim
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.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Feature request: optional color parameter for -trim
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.
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