Running multiple "mogrify" crop commands in sequence?
Posted: 2012-06-11T20:12:21-07:00
Hi. I'm doing a project where I put multiple flowers on scanners and scan them five times an hour for 1-5 weeks until they are dried up. I then have image sequences composed of thousands of raw scans, from which I have to extract the individual flowers to bring into Adobe Premiere or After Effects. I'm trying to move from GUI to CLI-based processing, but can't find an answer to my problem. I've found out how to use the mogrify program to create crops of images within a directory and put them in another one. What I want to do though is define the crop parameters for, say, the 15 flowers that would be in one scanner image sequence, and then have IM run a script or something that would do those commands in sequence without my input. I could then define parameters for cropping each individual flower out of the raw scan, and then leave my computer for however long it would take for it to extract all the 15 flowers from the 1000s of raw images. This would be a big step up from the GUI based way, where I have to manually tell XnConvert to start a new crop batch each time one finishes, although I can process five crops at a time with multiple instances of XnConvert. Still, it sucks.
I don't know anything about scripting. Would there be a template that I could modify to run multiple mogrify -crop commands from the same directory of images, outputting to a different -path each time?
My project is at:
http://www.momentaryvitality.ca
Thanks.
I don't know anything about scripting. Would there be a template that I could modify to run multiple mogrify -crop commands from the same directory of images, outputting to a different -path each time?
My project is at:
http://www.momentaryvitality.ca
Thanks.