mdawar.dev

A blog about programming, Web development, Open Source, Linux and DevOps.

Combine Images Into One

Install Requirements

ImageMagick must be be installed first.

On Ubuntu or Debian based distros:

bash
$sudo apt-get update
$sudo apt-get install imagemagick

On Fedora or CentOS:

bash
$sudo dnf install ImageMagick

Combine Images Side by Side

bash
$convert +append image1.jpg image2.jpg output.jpg

Combine Images Stacked Vertically

bash
$convert -append image1.jpg image2.jpg output.jpg