I've looked through the documentation and can't find anything that will autocrop an image.
For example, a 500px X 500px file that has only a 100px X 100px logo near the bottom left on a white background.
Anyway for the utility to auto-find the top, left, right and bottom edges of image data within a larger file?
Thanks.
Auto-cropping
Re: Auto-cropping
-trim would work for the logo on a white background example you quoted.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Auto-cropping
add -fuzz XX% -trim
if the background is not pure white.
also see my autotrim script at the link below
if the background is not pure white.
also see my autotrim script at the link below