feature request, concerning -trim in convert
Posted: 2007-01-31T12:59:50-07:00
Hello,
My feature request is to be able to crop to the geometry that was the result of the last trim, with a single invocation of convert.
Anthony shows how to crop to the geometry of a trim via a subshell, at:
http://www.cit.gu.edu.au/~anthony/graph ... #trim_blur
I had a situation where it would have been nice to be able to store the trim geometry and use it later in the same command. It was a case where I was generating both an ordinary image and mask image, in one convert command. Any changes to the size or page-offset of the ordinary image had to also be done to the mask image.
It is easy enough to use another approach to this problem, but I think this would be a useful feature.
My feature request is to be able to crop to the geometry that was the result of the last trim, with a single invocation of convert.
Anthony shows how to crop to the geometry of a trim via a subshell, at:
http://www.cit.gu.edu.au/~anthony/graph ... #trim_blur
Code: Select all
convert noisy.jpg -crop \
`convert noisy.jpg -blur 0x10 -fuzz 15% -trim -format '%wx%h%O' info:` \
+repage noisy_trimmed_2.jpg
I had a situation where it would have been nice to be able to store the trim geometry and use it later in the same command. It was a case where I was generating both an ordinary image and mask image, in one convert command. Any changes to the size or page-offset of the ordinary image had to also be done to the mask image.
It is easy enough to use another approach to this problem, but I think this would be a useful feature.