To join images vertically or horizontally on a Mac, you can use the built-in Preview app for simple side-by-side or stacked combinations, or use the Shortcuts app for batch processing. This article explains both methods step by step, plus how to handle transparency, file size, and format issues.
Why You Might Need to Combine Images
Combining images is a common task for creating panoramas, long screenshots, contact sheets, before-and-after comparisons, or simple collages. On a Mac, you have several options, each with different strengths. The built-in tools are free and require no installation, while third-party apps offer more control over spacing, alignment, and output quality.
Method 1: Using Preview (Built-In)
Preview is the default image viewer on macOS and can also edit images. To join two images vertically or horizontally:
- Open both images in Preview (select both files and press Command-O).
- In the first image window, press Command-A (Select All), then Command-C (Copy).
- In the second image window, press Command-A, then Command-V (Paste). The pasted image appears as a new layer.
- Drag the pasted layer to the desired position (above, below, left, or right of the original).
- Go to Tools > Adjust Size to increase the canvas size if needed, so the images don’t overlap.
- When satisfied, go to File > Export, choose a format (PNG recommended for quality), and save.
This method works well for two images, but it can be tedious for more. Also, Preview does not automatically align the edges perfectly; you may need to zoom in and use the arrow keys for fine adjustment.
Method 2: Using Shortcuts (Batch and Automation)
macOS Shortcuts (introduced in Mojave, enhanced in later versions) can combine multiple images automatically. To create a shortcut:
- Open the Shortcuts app (from Applications or Spotlight).
- Click the + button to create a new shortcut.
- Add the action “Get Images from Input” (or simply “Select Photos”).
- Add the action “Combine Images”. This action lets you choose Horizontally or Vertically from a dropdown.
- Add the action “Save to File” or “Share” to output the result.
- Run the shortcut, select the images you want, and it will produce a single combined image.
This method is ideal for joining more than two images, and it preserves quality. You can also add a step to resize the final image if needed.
Method 3: Using Automator (Legacy but Still Works)
Automator, which Apple has deprecated but still includes in macOS, can also combine images. Create a new Quick Action workflow:
- Open Automator (from Applications).
- Choose Quick Action as the document type.
- Set “Workflow receives current” to image files in Finder.
- Add the action “Combine Images” (found in the Photos library).
- Set the “Combine” dropdown to Horizontally or Vertically.
- Add a “Copy Finder Items” action to save the result.
- Save the workflow, then right-click any selected images in Finder and choose your Quick Action.
Automator’s Combine Images action works reliably and is a good middle ground between Preview and Shortcuts.
Method 4: Using Terminal (Command Line)
For users comfortable with the command line, the built-in sips tool can resize images, but it cannot combine them. However, you can use ImageMagick (if installed via Homebrew) with the montage or convert command. For example:
montage image1.png image2.png -tile 2x1 -geometry +0+0 output.png
This places the images side by side (2 columns, 1 row). For vertical stacking, use -tile 1x2. ImageMagick is not preinstalled, so you would need to install it with brew install imagemagick. This method gives precise control over spacing and alignment.
Common Problems and How to Fix Them
- Images have different sizes: If the images have different heights (for horizontal joining) or widths (for vertical), the final image will have empty space or misalignment. In Preview, you can resize one image to match the other before copying. In Shortcuts, the Combine Images action automatically aligns them by the larger dimension, but you may want to add a “Resize Image” action first.
- Transparency issues: PNG images can have transparent backgrounds. When pasting in Preview, the transparent areas will show the canvas color (usually white). To keep transparency, ensure the canvas is set to transparent (Tools > Show Inspector > check “Transparent Background”) before pasting.
- File size too large: Combining many high-resolution images can create a huge file. In Preview, use Export and choose JPEG with a lower quality, or in Shortcuts add a “Resize Image” action to reduce dimensions.
- Format differences: If you mix JPEG and PNG, the final file will adopt the format you choose during export. PNG is lossless but larger; JPEG is smaller but may lose quality.
Frequently Asked Questions
Can I join more than two images at once on a Mac?
Yes. The Shortcuts method and Automator method both accept multiple files and will combine them all in the order you select. Preview is less practical for more than two because you have to manually paste and position each one.
How do I join images without losing quality?
Use PNG format for the output, and avoid resizing the original images. Both Preview and Shortcuts preserve the original pixel data when you don’t scale. If you need to reduce file size, use JPEG with a high quality setting (e.g., 90%).
Is there a free app to combine images vertically on Mac?
Yes, the built-in Preview and Shortcuts are completely free. Additionally, the open-source ImageMagick is free, and many Mac users also use the free version of GIMP, which has a “Layer > New Layer” workflow similar to Preview but with more alignment tools.
Why does my combined image have a white background instead of transparent?
Preview defaults to a white canvas. To get transparency, open the Inspector (Tools > Show Inspector), select the “Image” tab, and check “Transparent Background” before pasting. Note that if you export as JPEG, transparency is not supported; you must use PNG.
Can I combine images vertically and horizontally at the same time (grid)?
Yes, but not with the built-in tools directly. In Shortcuts, the Combine Images action only does one direction at a time. To make a grid, you would need to combine rows first, then combine the resulting images vertically. ImageMagick’s montage command can do it in one step with the -tile option.
Does Preview on macOS Sonoma have a different method?
No, the paste method in Preview has remained the same for many versions. The Shortcuts app has improved, but the Combine Images action works the same. If you are on an older macOS (before Mojave), Shortcuts may not be available, so use Preview or Automator.
Which Method Should You Choose?
For a quick two-image join, Preview is the fastest. For multiple images or automation, use Shortcuts. For precise control over spacing and alignment, consider ImageMagick or a dedicated graphic editor. All methods are free and require no extra downloads if you stick to the built-in tools.
Related
Formula used
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- PUK Code Samsung: What It Is & How to Unlock
- Uninstall MATLAB Mac: Full Removal Guide
- Data Center Firewall: How It Works & How to Choose
- Tesla Phone? Here’s the Truth
- Best HDMI Switch: Top Picks & Buying Guide
- Data Readiness for AI: Why Your Data Estate Determines Success