Page 2 of 2

Re: how -trim images with black border and black background

Posted: 2013-08-14T14:41:19-07:00
by pet
oh ... thanks :D
with the -format "%@" the script can run faster.
i think the performance of the script is a important factor for very large and thousends of images.

pet

Re: how -trim images with black border and black background

Posted: 2013-08-14T15:00:16-07:00
by fmw42
I am not sure it really will run faster, but it does not hurt to use that. Only timing tests will tell or the IM developers, who would know.

Re: how -trim images with black border and black background

Posted: 2013-08-14T23:21:57-07:00
by pet
fmw42 wrote: convert Q.jpg -fuzz 20% -format "%@" info:
319x121+15+39
or
convert Q.jpg -fuzz 20% -format "%@" info: | tr "x" " " | sed 's/+/ +/g'
319 121 +15 +39
vs
convert Q.jpg -fuzz 20% -trim -format "%w %h %X %Y" info:
319 121 +15 +39
i tested the different way with 20 large images ,
is exactly the same run-time




--