Can't append vertically?
Posted: 2008-12-29T16:03:07-07:00
Windows bat script:
Works, the two shadowed text blocks are appended horizontally.
If I change the +append to -append to append them vertically, I get two separate images called output-1.png and output-2.png. I don't get it, why can it do it horizontally but not vertically?
I experimented with changing the text of the second line and it works so long as the first layer is wider than the second. I don't understand why there is a restriction, or how to work around it! This will eventually be used in a script and therefore I cannot statically assign any sizes. I also tried doing a +swap just before the -append... and again it works as the top layer is larger than the bottom when they are swapped.
I am guessing that append will not allow an increase in the width during a vertical append, though it does allow an increase in height during a horizontal append. Perhaps its a bug?
Help please!
Code: Select all
convert ^
( ^
-size 1280x1024 ^
xc:none ^
-gravity center ^
-font Palatino-Linotype-Bold ^
-pointsize 20 ^
-density 96 ^
-fill white ^
-stroke black ^
-annotate 0 "Small Text" ^
( ^
+clone ^
-background black ^
-shadow 70x2+2+2 ^
) ^
+swap ^
+composite ^
-trim ^
-gravity north ^
) ^
( ^
-size 1280x1024 ^
xc:none ^
-gravity center ^
-font Palatino-Linotype-Bold ^
-pointsize 45 ^
-density 96 ^
-fill white ^
-stroke black ^
-annotate 0 "Large Text" ^
( ^
+clone ^
-background black ^
-shadow 70x4+5+5 ^
) ^
+swap ^
+composite ^
-trim ^
-gravity north ^
) ^
+append ^
output.png
If I change the +append to -append to append them vertically, I get two separate images called output-1.png and output-2.png. I don't get it, why can it do it horizontally but not vertically?
I experimented with changing the text of the second line and it works so long as the first layer is wider than the second. I don't understand why there is a restriction, or how to work around it! This will eventually be used in a script and therefore I cannot statically assign any sizes. I also tried doing a +swap just before the -append... and again it works as the top layer is larger than the bottom when they are swapped.
I am guessing that append will not allow an increase in the width during a vertical append, though it does allow an increase in height during a horizontal append. Perhaps its a bug?
Help please!