Difference between revisions of "How to merge images at the command line with ImageMagick"

From steamWiki
Jump to: navigation, search
(Created page with "This is a quick article on how to merge a set of images, under Linux, at the command line using the '''convert''' command of [https://imagemagick.org/index.php ImageMagick]....")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
This is a quick article on how to merge a set of images, under Linux, at the command line using the '''convert''' command of [https://imagemagick.org/index.php ImageMagick].
 
This is a quick article on how to merge a set of images, under Linux, at the command line using the '''convert''' command of [https://imagemagick.org/index.php ImageMagick].
  
To merge a set of images into a horizontal line, use the '''+append''' flag with '''convert'''.  Here is an example:<pre>convert a*.png +append arow.png</pre>
+
To merge a set of images into a horizontal line, use the '''-append''' flag with '''convert'''.  Here is an example:<pre>convert a*.png -append arow.png</pre>
  
  
To merge a set of images into a vertical line, use the '''-append''' flag with '''convert'''.  Here is an example:<pre>convert b*.png +append bcolumn.png</pre>
+
To merge a set of images into a vertical line, use the '''+append''' flag with '''convert'''.  Here is an example:<pre>convert b*.png +append bcolumn.png</pre>
  
  
 
Source: https://stackoverflow.com/a/21325493/11034541
 
Source: https://stackoverflow.com/a/21325493/11034541

Latest revision as of 15:42, 20 July 2021

This is a quick article on how to merge a set of images, under Linux, at the command line using the convert command of ImageMagick.

To merge a set of images into a horizontal line, use the -append flag with convert. Here is an example:
convert a*.png -append arow.png


To merge a set of images into a vertical line, use the +append flag with convert. Here is an example:
convert b*.png +append bcolumn.png


Source: https://stackoverflow.com/a/21325493/11034541