Page 1 of 1

Batch processing flop and append

Posted: 2012-06-23T18:06:29-07:00
by t1op
Is there a way to run this command
convert image.jpg ( -clone 0 -flop ) +append result.jpg
on all images in a directory?

Is there a way to use wildcards? Or is a script required?
I use Windows 7. I have never written a script before and from searching, I think it could take me days to try to figure out how to write one myself.

PS This command will create a mirror duplicate of an image and add it to the original image.
Thanks

Re: Batch processing flop and append

Posted: 2012-06-23T18:57:13-07:00
by fmw42
t1op wrote:Is there a way to run this command
convert image.jpg ( -clone 0 -flop ) +append result.jpg
on all images in a directory?

Is there a way to use wildcards? Or is a script required?
I use Windows 7. I have never written a script before and from searching, I think it could take me days to try to figure out how to write one myself.

PS This command will create a mirror duplicate of an image and add it to the original image.
Thanks

It is my understanding that a script loop would be required in either unix or dos to do that, since mogrify will not work with parenthesis processing as far as I know..

See

http://www.imagemagick.org/Usage/basics/#mogrify_not
http://www.imagemagick.org/Usage/windows/

Re: Batch processing flop and append

Posted: 2012-06-25T06:46:43-07:00
by t1op
Thanks for the direction. I found this does the trick:

FOR %a in (*.jpg) DO convert %a ( -clone 0 -flop ) +append mirrored_%a

Simple :)