Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

Say I have two photos (or any images), for example with the following dimensions:

+----------+       +----------+
|          |       |          |
|          |       |          |
|320 x 428 |  and  |320 x 428 | 
|          |       |          |
|          |       |          |
+----------+       +----------+

I want to combine them into a single image, side by side. So the result should be

|                      |
|                      |
|      640 x 428       |
|                      |
|                      |

What's the simplest way to do this on a Mac? Is it possible with some default app like Preview, or would you recommend some 3rd party tool for the job?

share|improve this question
There are now two nice command-line answers, but I think the majority of Mac users would prefer a GUI-oriented solution. Post one (something that's simple but effective) and I'll accept it! – Jonik Jun 4 '12 at 20:47

16 Answers 16

up vote 65 down vote accepted

This solution uses only Preview and may be handy if you can't install software on a machine. It is, however, not elegant.

Say your images are called A and B. Then:

  1. Open A in Preview.
  2. Select All, Copy.
  3. In the Tools menu, select Size and adjust the width to the sum of the width of the two images (in your example, 640 px). Keep the height. This will result in a stretched version of A.
  4. Paste the copy of the original A and move it manually to the left.
  5. In another window, open B.
  6. Select All, Copy.
  7. Paste into A, moving it to the right.
  8. Save as a new image.

Since, of course, Preview does not offer any proper image editing tools and no way to exactly position the two images, the ImageMagick solutions posted here are preferable. (Or why not just install MacPorts' GIMP package while you're at it and enjoy a fully equipped image editor?)

share|improve this answer
I'm not sure it's actually possible to enjoy the GIMP. It's useable, sure, but not enjoyable. – CajunLuke Jun 4 '12 at 21:38
Thanks! Maybe not elegant as you say, but a passable quick solution. I actually tried this before posting the question, but had some problems around step 3 and gave it up. Got it working with these instructions. – Jonik Jun 4 '12 at 21:41

I often have to do this with images of plots of data. I use the command line tools that come in the Imagemagick package; I think I installed it on my system with MacPorts. You could also choose to install with brew (brew install imagemagick).

The actual tool you want to use from Imagemagick is the convert tool. If you have your two 320x428 images, say a.png and b.png, you can do

$> convert +append a.png b.png c.png

to create a new file, c.png, that has the a.png on the left and b.png on the right. Alternatively, you append them vertically with -append (instead of +) and a.png will be on top of b.png. With convert, you can do a ton of other things. For example, you can switch to a different image format for the output

$> convert +append a.png b.jpg c.tif

This isn't a GUI application, but maybe some others might have a better solution. Alternatively, you could put this in some sort of automator script.

share|improve this answer
Ah, thanks! Looks like ImageMagick offers several ways to do this; I just finished writing down how I solved it with ImageMagick. :) – Jonik Jun 4 '12 at 20:38
I tried cm2's answer on OS X Mountain Lion with ImageMagick 6.8, and I found that the append flag combined the images the other way around; -append combined the images side by side, and +append one on top of the other. – 3cheesewheel Jun 6 '13 at 16:50
Interesting that the behavior changed. I was using ImageMagick 6.7.2 when the append behaved as described in the answer. – cm2 Jun 6 '13 at 23:37
This command line approach really helps a lot in my research. Thanks a lot sir! – Sibbs Gambling Sep 6 '14 at 4:04
@hobbyte in ImageMagick 6.9.1 with OS 10.10, +append combined the images side by side, and -append one on top of the other – Arefly Sep 1 '15 at 7:30

How to do this with the tools to hand: Preview .app and Screen Capture.

  1. Open up any Application that lets you have a clean neat white background. Not strictly necessary but makes life easier.
  2. Make a screensnap: command shift 4 > drag out an area 640 x428 pixel (the cursor shows the dimensions).

    enter image description here

  3. This will be saved as a .png to your Desktop *. Double click on this along with your two existing images to open them in Preview .app

  4. Select each of your two images in turn and go command a (Select All) and command c (Copy)

    enter image description here

  5. Switch to your blank background image, command v (Paste) each in turn dragging them into position next to each other.

    enter image description here

    enter image description here

    You can scale them by dragging their handles, and nudge them a pixel at a time with your cursor keys.

    They will stay mobile until you Save.

  6. When you are happy with the arrangement:

    Menu > File > Save As… > New name > Whatever file format you want

/* Keep this as a Template size, with any others, clearly labelled with their dimensions for future use.

share|improve this answer
nice work with real example (+) – Buscar웃 Jul 9 '14 at 10:24
Thanks! :) Does anyone know how to control the List formatting in these posts? – PeterBreis Jul 9 '14 at 10:50
Yes :-) Compare my edit to your version to see what I did. – patrix Jul 9 '14 at 11:48
Mine seems to restart the count after the images and is difficult to set off the count. – PeterBreis Jul 9 '14 at 18:09

Here's one way I just managed to solve this with.

Disclaimer: If you are not familiar with the Unix command line, you may want to pick one of the GUI-oriented solutions that others have posted.

Install the ImageMagick graphics suite, e.g. with Homebrew:

brew install ImageMagick

Alternatively, use MacPorts ( sudo port install ImageMagick) or the Mac OS X binary release provided by ImageMagick. In my experience, Homebrew is the quickest, most hassle-free option.

Once you have ImageMagick installed, it's simple. Using Terminal, navigate to the directory containing the images, and create a combined version with a command such as:

montage -geometry 100% left.jpg right.jpg merged.jpg

There's multitude of options available; to learn about them, see:

share|improve this answer
If there's an easier way install ImageMagick on OS X, please leave a comment, and I'll edit the answer accordingly... – Jonik Jun 4 '12 at 20:34
You can use brew install ImageMagick, if you have homebrew installed. Which you should. – Matthew Schinckel Jun 5 '12 at 11:47
@Matthew: what makes Homebrew better than MacPorts? – Jonik Jun 5 '12 at 18:04
(Having used Homebrew now for 6 months or so, I agree with @Matthew, it's been way better than MacPorts.) – Jonik Jul 16 '13 at 14:57

Speaking of free GUI tools, Seashore App is an open source project much better at working with images than

It has better tools much on the lines of popular editors (including shortcuts) and I guess if you try you should be doing just fine without much help from us.

It supports layers, filters, channels and supports almost all image formats, plus it has better image / layer selection and resizing tools that may be better suited for your image editing needs.

  1. Open both the images with Seashore.
  2. Copy over the second one into the first one. Seashore will ask you if you want to create a New Layer or Anchor it with the one already there. (see screenshot).
  3. Click on New Layer.
  4. Use the Move tool (right most selected button in toolbar in the screenshot) to align your layer to the right of the previous one.
  5. Choose Image boundaries option from Image menu (Third item from top Cmd + Opt + C) increase the image boundary to the Right in your case by the current width of the image (assuming both images are of same size).
  6. Save as png or jpg according to your needs.


enter image description here

share|improve this answer

Pixelmator is only around $30 from the app store and its a full photoshop replacement for 99% of users. It will merge your images and do a thousand other things besides. Highly recommended.

share|improve this answer
While there are a few free alternatives in this thread, +1 for Pixelmator which can do this and much more for a good price. – Gerry Jun 5 '12 at 6:41

The simplest way I know uses Preview. Open both photos with Preview, position their windows side-by-side (flush) in front of your desktop and then use Preview's "Take a screen shot" command with the "from Selection" option. Select around the perimeter of both photos together and it will create a montage for you.

share|improve this answer

Using TextEdit, you can copy paste (or drag) the 2 images in to TextEdit window side by Side.

Save as PDF then Open- Save as JPEG after witch you can modify the image size in Preview.

See this Video for how to:

How to Combine Images on Mac OS X

How to Combine Images on Mac OS X. Make two pictures into single one.

share|improve this answer

I was looking at this old post to do the same and I came with a simple method.

  1. Get Inkscape - cross-platform, freeware, open-source.
  2. Open it, push File, modify document properties to the desired finished resolution.
  3. Import desired pictures into the document and move around, stretch, bend, etc.
  4. Export to chosen file type.
  5. Use all your free time to something else!
share|improve this answer

I created a Mac status bar app called ImageJoiner that does exactly this: drag and drop multiple images on it and it will combine them into 1 image.

share|improve this answer
Bought it. I don't recommend it. There's no resizing or scaling options so if one source image is smaller than than the other you get empty image space filled with white space. Heck the app doesn't even let you specify what color to use for the empty space. eg: black instead of white. It's just too limited in functionality to use. I'd rather use the command line, Photoshop, or the site which did exactly what I hoped THIS app would do, but didn't. The only options this app has are "Horizontal" "Vertical", and "Quit" I found "Quit" to be the best option. – user38217 Jan 31 '15 at 9:47
Thanks for the feedback, will definitely keep this in mind for the next version. – maq Jan 31 '15 at 22:29

There is Graphic Converter (free to try). So you could: open new picture 640 x 480; then in turn open each of the components, copy all, and paste into the new picture. Drag them into place where you want them. Then Save As... the format you want.

share|improve this answer
I haven't specifically tested this, but GraphicConverter has a very powerful batch-processing feature for sequences of image-processing routines, including some Automator and AppleScript support. I'll bet you can find a way to create a batch process that will do what you need in GraphicConverter. – user9290 Jun 5 '12 at 0:36

Do it online for free...

Beats messing around or installing other programs.

share|improve this answer

The easiest way is to use Graphic Converter. Open the Convert and Modify window, select all the images you want to stitch together on the left hand selection pane, and select a folder for the output in the right hand selection pane (otherwise you might overwrite your originals).

On the left hand side of the main window select Function -> Concat....

Click GO (LHS at bottom), this will open a dialogue box that asks if you want them arranged in a row only, column only or a matrix of N x M images.

share|improve this answer
At least my Macs (running OS X 10.6.8 and 10.8.4) don't seem to have Graphic Converter pre-installed, so this is not necessarily the easiest way. – Jonik Oct 31 '13 at 18:10

I'm a know-nothing when it comes to computers, but this question is all over the internet.

I make all kinds of pictures in Pages, then save the page as a pdf. I open the pdf in Preview and resave it as a jpg. Then I import the jpg in iphoto and do whatever I want to it there - crop it or play with the colors etc. Then I mail it to myself in whatever size I want. This is serious silliness by most people's standards.

Well it works - and you don't have to be a geek to do it :)

share|improve this answer

Open both images side by side in Preview, take a screenshot with command-shift-4.

share|improve this answer
If they are scaled you will lose a lot of DPI. You better use photoshop – Rob Apr 16 '14 at 14:13

Actually, there is a much simpler way to combine two photos into one page (one pdf) on a Mac. Open a new powerpoint file, open the photos you want to join or save into one PDF, use the Crop command (Shift+Control+Command+4) to crop the images one by one and paste them in the powerpoint file. Adjust the size of photos and placement on the slide. Save the slide or file as a PDF. Simple.

However if you want to merge two photos into one (with one merging into the other) there are other apps out there which can do it for you.

share|improve this answer
Requires you first have Office, making it the most expensive solution so far. – Tetsujin Jan 16 at 14:19

protected by Tetsujin Jan 16 at 14:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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