Uniting different commands in a single one
Posted: 2010-12-09T23:22:46-07:00
dear friends,
i am trying to unite a few commands in a single one, so far unsuccessfully , maybe you can help me,
the commands work all great, but create some large temporary files in between, i know i could delete them later, but it would be all more efficient if i could accomplish it all with a single command
these are the commands, 2 different scenarios
Scenario 1
1) convert IMG1.jpg -resize 3900x5196! IMG2.jpg
2) convert -size 2040x2856 xc:none -draw "image over -1038,-1050 0,0 'IMG2.jpg'" -quality 95 IMG3.jpg
as you can see 2) uses as input the output of 1) and puts it in a specific position in a new created canvas, is there a way to link both things together?
Scenario 2
the other 2 i wanted to combine are
a) convert -background none -fill #ff33cc -font Arial -pointsize 60 label:"text1" image1.png
b) convert -background none -fill #ff55cc -font Arial -pointsize 40 label:"text2" image2.png
c) convert -background none -fill #ff11cc -font Arial -pointsize 20 label:"text3" image3.png (and a few more in the same way)
2) convert -size 2040x2856 xc:none -draw "image over 438,-114 0,0 'image1.png'" -draw "image over 840,342 0,0 'image2.png'" (same with the rest) -quality 95 finalresult.png
(so here i generate a few png texts, and then mix them all together in different positions in a single final png , any way to do all that in a single step or less steps?)
thank you so very much for any advice or help you can give me
Jav
i am trying to unite a few commands in a single one, so far unsuccessfully , maybe you can help me,
the commands work all great, but create some large temporary files in between, i know i could delete them later, but it would be all more efficient if i could accomplish it all with a single command
these are the commands, 2 different scenarios
Scenario 1
1) convert IMG1.jpg -resize 3900x5196! IMG2.jpg
2) convert -size 2040x2856 xc:none -draw "image over -1038,-1050 0,0 'IMG2.jpg'" -quality 95 IMG3.jpg
as you can see 2) uses as input the output of 1) and puts it in a specific position in a new created canvas, is there a way to link both things together?
Scenario 2
the other 2 i wanted to combine are
a) convert -background none -fill #ff33cc -font Arial -pointsize 60 label:"text1" image1.png
b) convert -background none -fill #ff55cc -font Arial -pointsize 40 label:"text2" image2.png
c) convert -background none -fill #ff11cc -font Arial -pointsize 20 label:"text3" image3.png (and a few more in the same way)
2) convert -size 2040x2856 xc:none -draw "image over 438,-114 0,0 'image1.png'" -draw "image over 840,342 0,0 'image2.png'" (same with the rest) -quality 95 finalresult.png
(so here i generate a few png texts, and then mix them all together in different positions in a single final png , any way to do all that in a single step or less steps?)
thank you so very much for any advice or help you can give me
Jav