Topic: Is this possible (with a macro)? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: f(x) |
posted 07-21-2007 19:50
I did a little searching and couldn't find anything on it. I want to take a directory, open every two, rotate them 90 degrees, put them side by side, and save them. For example, I have a directory with image01.jpg through image40.jpg, I want to open image01.jpg and image02.jpg, rotate them 90 degrees, put them side by side, save it as a new image (JPG high) in a different directory, then do the same with image03.jpg and image04.jpg and so on. |
Paranoid (IV) Inmate From: Norway |
posted 07-21-2007 20:49
If the images are all at the same resolution, you can certainly make a maccro or at least an action. Here's what I have in mind:
|
Paranoid (IV) Inmate From: f(x) |
posted 07-21-2007 21:12 |
Paranoid (IV) Inmate From: Florida |
posted 07-22-2007 01:00
Terrible bash script which uses ImageMagick's mogrify and convert (lines wrapped so as not to break forum layout...should be one line): code: ls *.png > listo && mogrify -rotate 90 *.png && for ((i=0; i<FOO; i++)); do [[ -rs listo ]] | break; convert $(head -2 listo | tr '\n' ' ')+append "$i.png"; sed 1d < listo > listo.tmp; sed 1d < listo.tmp > listo; done
|