run batch file on a single image
Posted: 2007-01-17T20:00:44-07:00
Hi. I'm new to image magick and I am absolutely ignorant when it comes to scripting and such. Please forgive me if this is a really stupid question.
I have made a batch file and added it as a context menu action for .jpg files. What I want is to be able to right click a .jpg, click the new action, and have as output two separate files named resized.jpg and flipped.jpg, both 200x200 px
I've used this:
convert -resize 200x200 *.jpg resized.jpg
convert -flip resized.jpg flipped.jpg
Ok. I don't know if it's the right way of doing it but it works. The problem is than when I have more than one jpg in a folder, the batch file runs all of them, instead of only the one that I right clicked. I'm sure there's a way of solving it, even if it's not ImageMagick related... Can somebody please point me to the right path? I'd really appreciate it. I've searched google with no success, basically because I don't really know what I should be searching for.
Thanks in advance for any help
cristina
I have made a batch file and added it as a context menu action for .jpg files. What I want is to be able to right click a .jpg, click the new action, and have as output two separate files named resized.jpg and flipped.jpg, both 200x200 px
I've used this:
convert -resize 200x200 *.jpg resized.jpg
convert -flip resized.jpg flipped.jpg
Ok. I don't know if it's the right way of doing it but it works. The problem is than when I have more than one jpg in a folder, the batch file runs all of them, instead of only the one that I right clicked. I'm sure there's a way of solving it, even if it's not ImageMagick related... Can somebody please point me to the right path? I'd really appreciate it. I've searched google with no success, basically because I don't really know what I should be searching for.
Thanks in advance for any help
cristina