Photoshop Batch processing with Python
I meant to look into this for a while and now I have I am very pleasantly suprised!
import win32com.client ps = win32com.client.Dispatch("Photoshop.Application") ps.Preferences.TypeUnits = 1 ps.Preferences.RulerUnits = 1 mydoc = ps.Open("IMG_1630.jpg") if mydoc.Height > mydoc.Width : print "Portrait" else : print "Landscape" mydoc.ResizeImage(Width=640)
Basically you use the vb api docs :
The API seems quite detailed, certainly enough for my needs. If all else fails you can always call a Photoshop Action if it gets too tricky.
Lots more coming soon on this subject!