Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to join various PNG images horizontally in Mac, either using the console or Automator. Is this possible? How?

An example:

Given these two images:

enter image description here

enter image description here

The result would be:

enter image description here

The images have the same size but their size is not constrained. The number of images is between 2 and a few dozen.

share|improve this question
up vote 9 down vote accepted

You can use ImageMagick's append to combine multiple images together. +append for horizontal, -append for vertical.

convert mrdUM.png 477kv.png +append appended.png

enter image description here

convert mrdUM.png 477kv.png -append vertical.png

enter image description here


To install ImageMagick, I suggest either using MacPorts or Homebrew. After installing either one, it's as simple as

port install imagemagick

brew install imagemagick

share|improve this answer
It would be great to include a short explanation of how to install ImageMagick on a Mac. – slhck Oct 10 '11 at 18:46
brew install imagemagick ended up with error couldn't connect to host for imagemagick dependency: pkg-config. I ended up searching for an old version named "ImageMagick-x86_64-apple-darwin10" that runs on 10.6.8. An export MAGICK_HOME="$HOME/ImageMagick-6.6.7" an export PATH="$MAGICK_HOME/bin:$PATH" and an export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/" to install ImageMagick on Snow Leopard. That finally successfully made the convert command concatenate the jpeg files. – Pro Backup Aug 4 '12 at 17:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.