If I have two image files (eg. JPEGs) and I want to have one on the left side and one on the right side to make up one image, how do I do this?

  • 1
    what? Are the images of the same height? do you want to automate that or just for this one case? If you just want to do it once the simplest way to do it I can think of is to open them both up in Ms Paint then>>> Ctrl+A on one of them, Ctrl+C to copy, switch to the other window, resize the canvas by dragging the bottom corner down and to the right, Ctrl+V to paste the first image, then manually click and drag/use the arrow keys to align the paste with the other image as desired. – Christian Chapman Feb 15 '12 at 3:57
  • mspaint indeed! notepad too. Why are we so masochistic. :-D – Synetech Feb 15 '12 at 4:44
  • 2
    @Synetech: How could you do this in notepad? – CJ7 Feb 15 '12 at 4:47
  • 2
    I didn’t mean notepad for this, lol I meant that we often reach for the tools that come with Windows first, even though they are limited. – Synetech Feb 15 '12 at 4:55
  • Via the command line using ImageMagick: superuser.com/a/290679/415583 – Mat Gessel Mar 11 at 18:35

In simple words, add the widths of the two images, then create a new canvas which has this sum as its width, and the highest height of the two original images as its height, then place the two original images side-by-side in this canvas.

In Paint.NET you can do it faster. You can simply expand the canvas (Image > Canvas size) of second image to the left to a width that's enough to accommodate first image (that is, the sum of two original widths), then just paste the first image in. If the height is not enough, Paint.NET will ask you whether to expand the canvas.

PhotoFiltre is even faster and can do such stitching automatically:

  1. Open both images.
  2. On any one image, click Edit > Copy.
  3. On the other image, click Edit > Paste Special > Assemble.
  4. Choose the desired direction and click OK.
| improve this answer | |
  • 2
    or IrfanView Edit Paste Special | Add On Side | Top/Left/Bottom/Right. only problem with this approach is that it resizes the pasted photo to fit. Photo filtre will keep the original size intact and fill the rest with white space. So depends what you need. One day some genius will implement a dialog in some program to ask so we can have the best of both worlds. – Mikey Mar 17 '16 at 14:21

AxB sized image1 and CxD sized image2. Create a A+C x B(if B>D, othervise D) sized image and copy image1 to 0;0 point, copy image2 to A;0 point with some image editing program.

| improve this answer | |
  • A bit too many calculations for such a simple task, don't you think? Anyway PhotoFiltre can do such stitching automatically. I sorely miss such a function in Paint.NET where I have to stitch manually, but it's much easier than using MS Paint. – ADTC Feb 15 '12 at 8:55
  • Where is the difficulty on adding C to A? It is basic math, don't you think? Besides, this is exactly what @enthdegree explained, just some parameters involved. – The_aLiEn Feb 15 '12 at 16:39
  • Sorry, my comment should have been "a bit too much mathematically inclined thought process" (with variables like A, B, etc, and points on a graphing system like A,0; etc.). – ADTC Feb 18 '12 at 7:54
  • No hard feelings. It is just a worded explanation of a such numerical thing. – The_aLiEn Feb 18 '12 at 16:21

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.