Page 1 of 1

can't seem to trim/autocrop an image

Posted: 2012-11-26T05:46:21-07:00
by Dreamscape
Hello,

I want to trim/autocrop a picture, but whatever I do, I cannot find a way to do this.
I used the trim with the fuzz option, but no sucsses.

I used the line
convert -trim -fuzz "40%" in.jpg out.tif
with different values for fuzz, but it does nothing.

Can anybody help me?

Here is the picture. I used a blank page for this sample.
Image

Re: can't seem to trim/autocrop an image

Posted: 2012-11-26T06:05:41-07:00
by Bonzo
Try:

Code: Select all

convert in.jpg -fuzz 40% -trim out.tif

Re: can't seem to trim/autocrop an image

Posted: 2012-11-26T07:13:54-07:00
by Dreamscape
Hello,

Thanks for your response.

It didn't work, i've tried "convert in.tif -fuzz 80% -trim out.tif", but I still get a black border on the left. And when I try it with writing on the page, it doesn't trim it at all.

Re: can't seem to trim/autocrop an image

Posted: 2012-11-26T11:08:15-07:00
by fmw42
The following works for me on IM 6.8.0.7 Q16 Mac OSX Snow Leopard. Your problem is that your background is not solid black and has some gray stripes in it.


convert ehbuht.jpg -strip -fuzz 80% -trim +repage result.jpg