On Mon, Jan 19, 2009 at 10:16 PM, elliott-brennan
<[email protected]> wrote:
> Hi all,
>
> I've trying to pull together a command to create
> the following image:
>
> Three images stacked vertically on the left and
> one image taking up the right hand side of the
> frame. The right hand image would take up the
> whole right hand half of the total image.
>
> I can't quite get it with -gravity (e.g.
> NorthWest, West, SouthWest and East) as I keep
> getting four images in each corner.
>
> Should I be creating images each with transparent
> borders the size of the areas where the other
> images are meant to go and then creating a montage
> somehow?
>
> Could someone please point me in the correct
> direction for this?

Here is a script I have used to build a montage using convert:
<script>
#!/bin/sh
# comp_l.sh - compose landscape pics

convert -size 3000x2400 xc:white \
    dscn0556.png -geometry +10+10 -composite \
    dscn0560.png -geometry +801+10 -composite \
    dscn0561.png -geometry +1592+10 -composite \
    dscn0568.png -geometry +10+607 -composite \
    dscn0573.png -geometry +801+607 -composite \
    dscn0577.png -geometry +1592+607 -composite \
    dscn0581.png -geometry +10+1204 -composite \
    dscn0582.png -geometry +801+1204 -composite \
    dscn0583.png -geometry +1592+1204 -composite \
    dscn0584.png -geometry +10+1801 -composite \
    dscn0588.png -geometry +801+1801 -composite \
    dscn0589.png -geometry +1592+1801 -composite \
    landscapes.png

exit 0
</script>

This makes no use of -gravity at all because I have pre-calculated all
positions.
Note than when using -gravity any position data you give it works
toward the inside of the picture.

Bob
-- 
In a world without walls who needs Windows (or Gates)? Try Linux instead!
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to