joining images in command line mode

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
zomp

joining images in command line mode

Post by zomp »

I need to join images in command line mode. That is, to obtain a single destination file from several source files.
I am not interested in animation. I need only to stack horizontally or vertically several files into a single png file.
I have made some trials but it seems to me that it is not possible with png files since they do not support animation frames.
However, as I have already said, I am not finding animation, but only a "stacking" method.
Is it possible?

Thanks for your wonderful program.
Last edited by zomp on 2008-01-09T14:04:09-07:00, edited 1 time in total.
zomp

Re: joining images in command line mode

Post by zomp »

zomp wrote:I need to join images in command line mode. That is, to obtain a single destination file from several source files.
I am not interested in animation. I need only to stack horizontally or vertically several files into a single png file.
I have made some trials but it seems to me that it is not possible with png files since they do not support animation frames.
However, as I have already said, I am not finding animation, but only a "stacking" method.
Is it possible?

Thanks for your wonderful program.
I answer (partially) to myself. I have to use montage in place of convert, as I made before. After some experiments, I recognized that the right options to use are -geometry and -tile.

Just another question about a point that I have not solved yet: how can I mantain the trasparency in the source images? Without any options apart the two above mentioned ones, montage transforms trasparency into white background...
Last edited by zomp on 2008-01-09T14:03:46-07:00, edited 1 time in total.
zomp

Re: joining images in command line mode

Post by zomp »

zomp wrote: Just another question about a point that I have not solved yet: how can I mantain the trasparency in the source images? Without any options apart the two above mentioned ones, montage transforms trasparency into white background...
Definitely solved. Used option -background None.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: joining images in command line mode

Post by Bonzo »

Also look at -append
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: joining images in command line mode

Post by anthony »

And a number of methods of using -append
http://imagemagick.org/Usage/layers/#append
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply