oh ... thanks
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
how -trim images with black border and black background
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: how -trim images with black border and black background
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
i tested the different way with 20 large images ,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
is exactly the same run-time
--