Page 1 of 1

Place 2 images side by side

Posted: 2019-08-22T13:14:33-07:00
by jmads
I need help placing 2 images that are the same size, side by side.

I have several thousand images in one directory. Using the command line, I would like to place the before image next to its corresponding after image. The files are named as follows: before 12345 obj.1 v.1.jpg after 12345 obj.1 v.1.jpg.

I'd like to make the output file name the number followed by_before and after like this: 12345_before and after.jpg.


Re: Place 2 images side by side

Posted: 2019-08-22T13:45:47-07:00
by snibgo
What version of IM? On what platform?

The IM command could be something like:

Code: Select all

magick in_before.jpg in_after.jpg +append out.jpg
You will need a shell script to loop through the files and manage the filenames.

Re: Place 2 images side by side

Posted: 2019-08-23T07:02:33-07:00
by jmads
Sorry, new to the program:
using ImageMagick-7.0.8-61-Q16-x64-dll.exe on windows 10

thanks for the help.

Re: Place 2 images side by side

Posted: 2019-08-23T07:23:32-07:00
by snibgo
This is an ImageMagick forum. I have shown you the ImageMagick command. If you also need help writing Windows scripts, I suggest you find a Windows script forum.