newbie - chaining successful commands
Posted: 2011-02-17T04:46:47-07:00
Hello.
Searched the posts, found one similar to what I'm after, but, being still new to IM, that post's solutions were far above my level.
Basically, I want to montage some images, append a header image to each montage, and then convert those montages into a PDF doc. That PDF doc is all I'm really after.
Here's the commands I've gotten to work:
Thing is though, in actual practice each montage consists of 25 images. So it's taking about 10 seconds to create the PDF. Most likely cause I'm writing to the directory four times to create four files not necessary for download, and probably cause I'm working with disk space rather than memory.
So, how can I combine the commands? And how can I maximize speed?
I've experimented with "-write mpr", but, as I say, too much of IM is still way over my head.
Thank you.
Searched the posts, found one similar to what I'm after, but, being still new to IM, that post's solutions were far above my level.
Basically, I want to montage some images, append a header image to each montage, and then convert those montages into a PDF doc. That PDF doc is all I'm really after.
Here's the commands I've gotten to work:
Code: Select all
montage img1.jpg img2.jpg img3.jpg -geometry 150x150+5+5 mix1.jpg
montage img4.jpg img5.jpg img6.jpg -geometry 150x150+5+5 mix2.jpg
convert header.jpg mix1.jpg -append mix1AndTop.jpg
convert header.jpg mix2.jpg -append mix2AndTop.jpg
convert mix1AndTop.jpg mix2AndTop.jpg TheEnd.pdf
So, how can I combine the commands? And how can I maximize speed?
I've experimented with "-write mpr", but, as I say, too much of IM is still way over my head.
Thank you.