Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 8 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

Reference


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

 
discard

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.