Bash: command convert

Berny -  
jipicy Posted messages 40842 Registration date   Status Moderator Last intervention   -
Hello,

I made a small bash script that retrieves images from the web. I would like to combine 4 (for example) images into a final image where each image would occupy a corner (for example) of the final image. It seems that it's possible to do this with the "convert" command...

Could someone tell me more about it? What is the syntax?

Thank you!

Berny
Configuration: Linux Suse Firefox 3.5.3

1 answer

jipicy Posted messages 40842 Registration date   Status Moderator Last intervention   4 898
 
Hello,

The "convert" command is for converting formats and not for assembling or mixing images.

Excerpt from man ImageMagick:

  montage Montage creates a composite image by combining several separate images. The images are placed side by side in the composite image with their names optionally appearing underneath.  convert Convert takes an input file in a given format and converts it to an output file in a different format. By default, the image format is determined by its magic number. To specify a particular image format, place the format followed by a colon before the file name (e.g. ps:image) or specify the type in the file name suffix (e.g. image.ps). Specify - as the name for standard input and output. If the file name has the .Z extension, the file is decompressed with uncompress. composite combines composite images to create new images. 


Examples of commands:
convert
montage
composite

Examples of scripts:
http://www.imagemagick.org/Usage/

--
$ man woman
There is no manual page for woman.
2