Need help with montage

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sbennettim

Need help with montage

Post by sbennettim »

Hi,

I am trying to use montage to join 7 images in a row.
Seems simple enough eh?
The images are all the same height but they are different widths.
The problem is everytime I try they don't meet each other. There is space in between.
I tried using geometry options to correct this but when I get them to meet
correctly then the heights are off.
Maybe montage is the wrong way to do it.
How can I join images of the same height but different widths into a row
with no space in between?

Thanks,
-Steve
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Need help with montage

Post by Bonzo »

Try append:

Code: Select all

exec("/usr/local/bin/convert -background white -bordercolor black -border 1 -gravity Center R.gif u.gif b.gif b.gif l.gif e.gif w.gif e.gif b.gif s.gif +append textbw.gif");
This will put the images in a row

Code: Select all

exec("/usr/local/bin/convert -background white -bordercolor black -border 1 -gravity Center R.gif u.gif b.gif bb.gif l.gif e.gif w.gif e.gif b.gif s.gif -append textbw.gif");
This will put the images in a column.

The output of this is half way down this page: http://www.rubblewebs.co.uk/imagemagick/text.php

There are also some examples of this here: http://www.cit.gu.edu.au/~anthony/graphics/imagick6/ but I can not remember which page.
sbennettim

Re: Need help with montage

Post by sbennettim »

Thanks a bunch. Just what I was looking for.
Now I have a set of images I created using append.
How do I take that set and create an animation?

I assume any animation made with imageMagick will be a gif?

Here's a javascript version of what I want to animate. (in case you're curious)
http://members.cox.net/steve.art/patience

Thanks,
-Steve
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Need help with montage

Post by Bonzo »

I have not worked with animations much but I have some examples on my site: http://www.rubblewebs.co.uk/imagemagick/animation.php

There are also examples on Anthony's site : http://www.imagemagick.org/Usage/ you will need to find the correct page.
Post Reply