Topic: Is this possible (with a macro)? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29364" title="Pages that link to Topic: Is this possible (with a macro)? (Page 1 of 1)" rel="nofollow" >Topic: Is this possible (with a macro)? <span class="small">(Page 1 of 1)</span>\

 
zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

posted 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.

Is this possible within Photoshop or will I need something else?

My alternative is to write a quick GD/PHP script that will go through the directory and do this. (I somewhat prefer this too.)



(Edited by zavaboy on 07-21-2007 20:32)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted 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:

  • Select > All
  • Edit > copy
  • File > close ( without saving )
  • Image > Canvas Size ( double the res. and Anchor the image one side )
  • Copy layer mask ( Ctrl click on the thumbnail of the layer in the Layer dock )
  • Select > Inverse
  • Edit > paste
  • File > Save [as]



zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 07-21-2007 21:12

Ok, I will try that, thanks poi! I don't have the images I need yet, I will have them in about a week, maybe.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted 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


Where 'FOO' should be half the number of files you've got (so 100 files you'd want i<50;). Woo so bad you have to modify it!

(Edited by reisio on 07-22-2007 01:05)

(Edited by reisio on 07-22-2007 01:07)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu