4

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.

9

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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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